Package org.openrdf.sail.memory.model

Examples of org.openrdf.sail.memory.model.TxnStatus


          // statement is already present, update its transaction
          // status if appropriate

          txnStatements.put(st, st);

          TxnStatus txnStatus = st.getTxnStatus();

          if (txnStatus == TxnStatus.NEUTRAL && !st.isExplicit() && explicit) {
            // Implicit statement is now added explicitly
            st.setTxnStatus(TxnStatus.EXPLICIT);
          }
View Full Code Here


  protected boolean removeStatement(MemStatement st, boolean explicit)
    throws StoreException
  {
    boolean statementsRemoved = false;
    TxnStatus txnStatus = st.getTxnStatus();

    if (txnStatus == TxnStatus.NEUTRAL && st.isExplicit() == explicit) {
      // Remove explicit statement
      st.setTxnStatus(TxnStatus.DEPRECATED);
      statementsRemoved = true;
View Full Code Here

    boolean statementsDeprecated = false;

    int txnSnapshot = currentSnapshot + 1;

    for (MemStatement st : txnStatements.keySet()) {
      TxnStatus txnStatus = st.getTxnStatus();

      if (txnStatus == TxnStatus.NEUTRAL) {
        continue;
      }
      else if (txnStatus == TxnStatus.NEW) {
View Full Code Here

    logger.debug("rolling back transaction");

    boolean statementsDeprecated = false;

    for (MemStatement st : txnStatements.keySet()) {
      TxnStatus txnStatus = st.getTxnStatus();
      if (txnStatus == TxnStatus.NEW || txnStatus == TxnStatus.ZOMBIE) {
        // Statement has been added during this transaction and deprecates
        // immediately
        st.setTillSnapshot(currentSnapshot);
        statementsDeprecated = true;
View Full Code Here

          // status if appropriate
          MemStatement st = stIter.next();

          txnStatements.put(st, st);

          TxnStatus txnStatus = st.getTxnStatus();

          if (txnStatus == TxnStatus.NEUTRAL && !st.isExplicit() && explicit) {
            // Implicit statement is now added explicitly
            st.setTxnStatus(TxnStatus.EXPLICIT);
          }
View Full Code Here

  protected boolean removeStatement(MemStatement st, boolean explicit)
    throws SailException
  {
    boolean statementsRemoved = false;
    TxnStatus txnStatus = st.getTxnStatus();

    if (txnStatus == TxnStatus.NEUTRAL && st.isExplicit() == explicit) {
      // Remove explicit statement
      st.setTxnStatus(TxnStatus.DEPRECATED);
      statementsRemoved = true;
View Full Code Here

    boolean statementsDeprecated = false;

    int txnSnapshot = currentSnapshot + 1;

    for (MemStatement st : txnStatements.keySet()) {
      TxnStatus txnStatus = st.getTxnStatus();

      if (txnStatus == TxnStatus.NEUTRAL) {
        continue;
      }
      else if (txnStatus == TxnStatus.NEW) {
View Full Code Here

    logger.debug("rolling back transaction");

    int txnSnapshot = currentSnapshot + 1;

    for (MemStatement st : txnStatements.keySet()) {
      TxnStatus txnStatus = st.getTxnStatus();
      if (txnStatus == TxnStatus.NEW || txnStatus == TxnStatus.ZOMBIE) {
        // Statement has been added during this transaction
        st.setTillSnapshot(txnSnapshot);
      }
      else if (txnStatus != TxnStatus.NEUTRAL) {
View Full Code Here

TOP

Related Classes of org.openrdf.sail.memory.model.TxnStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.