Examples of load()


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

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

     } else {

       String currentUserId = iRequest.data.currentUserId;
       if (currentUserId != null && currentUserId.length() > 0 && localDatabase != null && localDatabase.getUser() != null) {
         if (!currentUserId.equals(localDatabase.getUser().getDocument().getIdentity().toString())) {
           ODocument userDoc = localDatabase.load(new ORecordId(currentUserId));
           localDatabase.setUser(new OUser(userDoc));
         }
       }
     }
View Full Code Here

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

  }
 
  public ODocument get(ORID rid) {
    ODatabaseRecordTx db =DbHelper.getConnection();
    if (Logger.isTraceEnabled()) Logger.trace("Method Start");
    ODocument doc=db.load(rid);
    if (Logger.isTraceEnabled()) Logger.trace("Method End");
    return doc;
  }
 
  /***
 
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexManager.load()

              instance = new OIndexManagerShared(database);
            else
              instance = new OIndexManagerRemote(database);

            if (iLoad)
              instance.load();

            return instance;
          }
        }), database);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.load()

            final long pageIndex = updatePageRecord.getPageIndex();

            if (!expectedDiskCache.isOpen(fileId))
              expectedDiskCache.openFile(fileId);

            final OCacheEntry cacheEntry = expectedDiskCache.load(fileId, pageIndex, true);
            cacheEntry.acquireExclusiveLock();
            try {
              ODurablePage durablePage = new ODurablePage(cacheEntry, ODurablePage.TrackMode.NONE);
              durablePage.restoreChanges(updatePageRecord.getChanges());
              durablePage.setLsn(updatePageRecord.getLsn());
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.function.OFunctionLibraryImpl.load()

    functionLibrary = new OFunctionLibraryProxy(database.getStorage().getResource(OFunctionLibrary.class.getSimpleName(),
        new Callable<OFunctionLibrary>() {
          public OFunctionLibrary call() {
            final OFunctionLibraryImpl instance = new OFunctionLibraryImpl();
            if (iLoad)
              instance.load();
            return instance;
          }
        }), database);
    scheduler = new OSchedulerListenerProxy(database.getStorage().getResource(OSchedulerListener.class.getSimpleName(),
        new Callable<OSchedulerListener>() {
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load()

    schema = new OSchemaProxy(database.getStorage().getResource(OSchema.class.getSimpleName(), new Callable<OSchemaShared>() {
      public OSchemaShared call() {
        final OSchemaShared instance = new OSchemaShared(schemaClusterId);
        if (iLoad)
          instance.load();
        return instance;
      }
    }), database);

    Boolean enableSecurity = (Boolean) database.getProperty(ODatabase.OPTIONS.SECURITY.toString());
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.security.OSecurityShared.load()

      security = new OSecurityProxy(database.getStorage().getResource(OSecurity.class.getSimpleName(),
          new Callable<OSecurityShared>() {
            public OSecurityShared call() {
              final OSecurityShared instance = new OSecurityShared();
              if (iLoad)
                instance.load();
              return instance;
            }
          }), database);

  }
View Full Code Here

Examples of com.orientechnologies.orient.core.record.ORecord.load()

  @SuppressWarnings({ "unchecked", "rawtypes" })
  private Object loadIfNeed(Object o) {
    final ORecord record = (ORecord) o;
    if (record.getRecord().getInternalStatus() == ORecordElement.STATUS.NOT_LOADED) {
      try {
        o = record.<ORecord> load();
      } catch (ORecordNotFoundException e) {
        throw new OException("Error during loading record with id : " + record.getIdentity());
      }
    }
    return o;
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.load()

        // MAKING SURE THAT DATABASE USER IS CURRENT (IN CASE OF DETACHING)
        if (iRecord.getDatabase() != underlying)
          iRecord.setDatabase(underlying);

        if (iRecord.getInternalStatus() == ORecordElement.STATUS.NOT_LOADED)
          record = (ODocument) record.load();

        pojo = newInstance(record.getClassName());
        registerUserObject(pojo, record);

        stream2pojo(record, pojo, iFetchPlan);
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.