Package com.orientechnologies.orient.core.db.record

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecord.load()


          // NOT VALID POSITION (IT HAS BEEN DELETED)
          continue;

        rid.clusterPosition = positionInPhyCluster;

        record = database.load(rid);

        if (record != null && record.getRecordType() != ODocument.RECORD_TYPE)
          // WRONG RECORD TYPE: JUMP IT
          continue;
View Full Code Here


          // NOT VALID POSITION (IT HAS BEEN DELETED)
          continue;

        rid.clusterPosition = positionInPhyCluster;

        record = database.load(rid);

        if (record != null && record.getRecordType() != ODocument.RECORD_TYPE)
          // WRONG RECORD TYPE: JUMP IT
          continue;
View Full Code Here

          // NOT VALID POSITION (IT HAS BEEN DELETED)
          continue;

        rid.clusterPosition = positionInPhyCluster;

        record = database.load(rid);

        if (record != null && record.getRecordType() != ODocument.RECORD_TYPE)
          // WRONG RECORD TYPE: JUMP IT
          continue;
View Full Code Here

    final ODatabaseRecord db = ODatabaseRecordThreadLocal.INSTANCE.get();
    if (db == null)
      throw new ODatabaseException(
          "No database found in current thread local space. If you manually control databases over threads assure to set the current database before to use it by calling: ODatabaseRecordThreadLocal.INSTANCE.set(db);");

    return (T) db.load(this);
  }

  private void checkClusterLimits() {
    if (clusterId < -2)
      throw new ODatabaseException("RecordId cannot support negative cluster id. You've used: " + clusterId);
View Full Code Here

          return true;

      final ODocument doc;
      if (iReadOriginal)
        // RELOAD TO AVOID HACKING OF "_ALLOW" FIELDS
        doc = (ODocument) db.load(iDocument.getIdentity());
      else
        doc = iDocument;

      return db
          .getMetadata()
View Full Code Here

      if (recreateIndexesThread != null && recreateIndexesThread.isAlive())
        // BUILDING ALREADY IN PROGRESS
        return;

      final ODatabaseRecord db = getDatabase();
      document = db.load(new ORecordId(getDatabase().getStorage().getConfiguration().indexMgrRecordId));
      final ODocument doc = new ODocument();
      document.copyTo(doc);

      // USE A NEW DB INSTANCE
      final ODatabaseDocumentTx newDb = new ODatabaseDocumentTx(db.getURL());
View Full Code Here

      ODocumentInternal.addOwner(recordInternal, iRecord);
    else {
      ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get();

      if (rid.isPersistent() && database != null) {
        ODocument documentToMerge = database.load(rid);
        documentToMerge.merge(recordInternal, false, false);
        return documentToMerge;
      }
    }
View Full Code Here

      final ODatabaseRecord database = getDatabase().getUnderlying();

      o = recordList.get(iIndex);
      ODocument doc;
      if (o instanceof ORID) {
        doc = database.load((ORID) o, fetchPlan);
      } else {
        doc = (ODocument) o;
      }
      if (o == null) {
        OLogManager.instance().warn(
View Full Code Here

      final ODatabaseRecord database = getDatabase().getUnderlying();

      o = recordList.get(iIndex);
      ODocument doc;
      if (o instanceof ORID) {
        doc = database.load((ORID) o, fetchPlan);
      } else {
        doc = (ODocument) o;
      }
      if (o == null) {
        OLogManager.instance().warn(
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.