Examples of OTransactionException


Examples of com.orientechnologies.orient.core.exception.OTransactionException

    }
  }

  protected void checkTransaction() {
    if (currentTx == null || currentTx.getStatus() == TXSTATUS.INVALID)
      throw new OTransactionException("Transaction not started");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

    if (e.getIdentity().isNew()) {
      final ORecord record = e.getRecord();

      if (record == null)
        throw new OTransactionException("Cannot insert item in mvrb-tree because the transactional item was not found.");

      // ADD IN TEMP LIST
      if (newEntries == null)
        newEntries = new IdentityHashMap<ORecord, Object>();
      else if (newEntries.containsKey(record))
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

    if (txStartCounter == 0) {
      doCommit();
    } else if (txStartCounter > 0)
      OLogManager.instance().debug(this, "Nested transaction was closed but transaction itself was not committed.");
    else
      throw new OTransactionException("Transaction was committed more times than it is started.");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

      OLogManager.instance().debug(this, "Nested transaction was closed but transaction itself was scheduled for rollback.");
      return;
    }

    if (txStartCounter < 0)
      throw new OTransactionException("Transaction was rolled back more times than it was started.");

    database.getStorage().callInLock(new Callable<Void>() {

      public Void call() throws Exception {
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

    }
  }

  protected void checkTransaction() {
    if (status == TXSTATUS.INVALID)
      throw new OTransactionException("Invalid state of the transaction. The transaction must be begun.");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

        }

      } else
        keyContainer = null;
    } catch (IOException ioe) {
      throw new OTransactionException("Error during index changes serialization. ", ioe);
    }

    final List<ODocument> operations = new ArrayList<ODocument>();

    // SERIALIZE VALUES
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

  @Override
  public Object processBlock(final OComposableProcessor iManager, final OCommandContext iContext, final ODocument iConfig,
      ODocument iOutput, final boolean iReadOnly) {
    if (!(iConfig instanceof ODocument))
      throw new OTransactionException("QueryBlock: expected document as content");

    String command = parse(iContext, (ODocument) iConfig);

    command = (String) resolveValue(iContext, command, true);
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

        else if (Boolean.TRUE.equals(keyContainer.field("binary"))) {
          key = OStreamSerializerAnyStreamable.INSTANCE.fromStream((byte[]) storedKey);
        } else
          key = storedKey;
      } catch (IOException ioe) {
        throw new OTransactionException("Error during index changes deserialization. ", ioe);
      }
    } else
      key = null;

    final List<ODocument> operations = entry.field("ops");
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

              "@Version field has been declared as %s while the supported are: Number, String, Object", ver.getClass());
      }
    }

    if (db.isMVCC() && !versionConfigured && db.getTransaction() instanceof OTransactionOptimistic)
      throw new OTransactionException(
          "Cannot involve an object of class '"
              + pojoClass
              + "' in an Optimistic Transaction commit because it does not define @Version or @OVersion and therefore cannot handle MVCC");

    String fieldName;
View Full Code Here

Examples of com.orientechnologies.orient.core.exception.OTransactionException

      currentTx = new OTransactionNoTx(this);
  }

  protected void checkTransaction() {
    if (currentTx == null || currentTx.getStatus() == TXSTATUS.INVALID)
      throw new OTransactionException("Transaction not started");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.