Package com.orientechnologies.orient.core.cache

Examples of com.orientechnologies.orient.core.cache.ODatabaseRecordCache


    return databaseOwner;
  }

  public ODatabaseRaw setOwner(final ODatabaseRecord iOwner) {
    databaseOwner = iOwner;
    level1Cache = new ODatabaseRecordCache(databaseOwner);
    return this;
  }
View Full Code Here


      throw new OTransactionException("Invalid state of the transaction. The transaction must be begun.");
  }

  public static void updateCacheFromEntries(final OStorage iStorage, final OTransaction iTx,
      final Iterable<? extends OTransactionEntry> iEntries) throws IOException {
    final ODatabaseRecordCache dbCache = iTx.getDatabase().getCache();

    for (OTransactionEntry txEntry : iEntries) {
      if (txEntry.status == OTransactionEntry.DELETED)
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.status == OTransactionEntry.UPDATED || txEntry.status == OTransactionEntry.CREATED)
        dbCache.updateRecord(txEntry.getRecord());
    }
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.cache.ODatabaseRecordCache

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.