Method Summary |
|
public PCStateMan | add(PCStateMan sm) Add a newly created sm to the managed cache. |
public PCStateMan | add(OID oid, State state, PCStateMan[] sms) |
public PCStateMan | addForProcessing(PCStateMan sm) Add to the head of the processList. |
public void | addRealOID(PCStateMan sm) This add the real oid of the NewOID to the mapping. |
public PCStateMan | addSm(OID key, PCStateMan value) This method does not replace the
PCStateMan if the
OID is present. |
protected PCStateMan | addState(OID key, State value, boolean manage, PCStateMan[] addSm) If the instance for this oid is already managed then it will be updated
with the state information. |
public void | addStateOnly(OID oid, State state) Provide the oid-state pair to local cache. |
public void | checkModelConsistency() |
public static void | checkRefType(int currentRefType) |
public void | clear() |
public boolean | contains(OID oid) Do we have a State or PCStateMan for the oid? Note the data may be
evicted at any time depending on the reference type. |
public PMCacheEntry | createCacheKey(PCStateMan sm) This must create a CacheEntryBase for the sm. |
public PMCacheEntry | createCacheKey(OID oid, State state) This must create a CacheEntryBase for the sm. |
public void | doCommit(boolean retainValues) |
public void | doRefresh(boolean strict) |
public void | doRollback(boolean retainValues) |
public void | dump() |
static boolean | eq(OID x, OID y) Check for equality of non-null reference x and possibly-null y. |
public void | evict() |
public PCStateMan | getByNewObjectOID(NewObjectOID oid) If the sm is already managed then return it. |
public PCStateMan | getByOID(OID oid, boolean manage) If the sm is already managed then return it. |
public int | getCurrentRefType() |
public State | getStateByOID(OID oid) Return the state if present. |
public boolean | inProcessList(PCStateMan sm) |
static int | indexFor(int h, int length) Returns index for hash code h. |
public boolean | isOverWriteMode() |
public void | processReferenceQueue() Process the ReferenceQueue holding keys for GCed values. |
public void | remove(PCStateMan sm) |
public void | setCurrentRefType(int currentRefType) |
public void | setInterceptDfgFieldAccess(boolean on) |
public void | setOverWriteMode(boolean overWriteMode) |
public void | setPm(VersantPersistenceManagerImp pm) |
public int | size() |
PCStateMan | updateSm(State value, PCStateMan sm, OID key) |