public class IdentityMapAccessor extends java.lang.Object implements IdentityMapAccessor, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected IdentityMapManager |
identityMapManager
This is the identity map manager for this accessor.
|
protected AbstractSession |
session |
| Constructor and Description |
|---|
IdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager)
INTERNAL:
An IdentityMapAccessor sits between the session and the identityMapManager
It needs references in both directions
|
| Modifier and Type | Method and Description |
|---|---|
CacheKey |
acquireDeferredLock(java.util.Vector primarKey,
java.lang.Class javaClass,
ClassDescriptor descriptor)
INTERNAL:
Deferred lock the identity map for the object, this is used for avoiding deadlock
The return cacheKey should be used to release the deferred lock
|
CacheKey |
acquireLock(java.util.Vector primaryKey,
java.lang.Class domainClass,
boolean forMerge,
ClassDescriptor descriptor)
INTERNAL:
Provides access for setting a concurrency lock on an object in the IdentityMap.
|
CacheKey |
acquireLock(java.util.Vector primarKey,
java.lang.Class javaClass,
ClassDescriptor descriptor)
INTERNAL:
Lock the identity map for the object, this must be done when building objects.
|
CacheKey |
acquireLockNoWait(java.util.Vector primaryKey,
java.lang.Class domainClass,
boolean forMerge,
ClassDescriptor descriptor)
INTERNAL:
Provides access for setting a concurrency lock on an object in the IdentityMap.
|
CacheKey |
acquireReadLockOnCacheKey(java.util.Vector primaryKey,
java.lang.Class domainClass,
ClassDescriptor descriptor)
INTERNAL:
Find the cachekey for the provided primary key and place a readlock on it.
|
CacheKey |
acquireReadLockOnCacheKeyNoWait(java.util.Vector primaryKey,
java.lang.Class domainClass,
ClassDescriptor descriptor)
INTERNAL:
Find the cachekey for the provided primary key and place a readlock on it.
|
boolean |
acquireWriteLock()
INTERNAL:
Lock the entire cache if the cache isolation requires.
|
void |
clearQueryCache()
ADVANCED:
Clear all the query caches
|
void |
clearQueryCache(ReadQuery query)
ADVANCED:
Clear the query class associated with the passed-in read query
|
void |
clearQueryCache(java.lang.String sessionQueryName)
ADVANCED:
Clear the query cache associated with the named query on the session
|
void |
clearQueryCache(java.lang.String descriptorQueryName,
java.lang.Class queryClass)
ADVANCED:
Clear the query cache associated with the named query on the descriptor for the given class
|
boolean |
containsKey(java.util.Vector key,
java.lang.Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Return whether the identity maps contain an item of the given class and key
|
boolean |
containsObjectInIdentityMap(java.lang.Object object)
ADVANCED:
Return if their is an object for the primary key.
|
boolean |
containsObjectInIdentityMap(Record rowContainingPrimaryKey,
java.lang.Class theClass)
ADVANCED:
Return if their is an object for the row containing primary key and the class.
|
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
ADVANCED:
Return if their is an object for the primary key.
|
boolean |
containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Return if their is an object for the primary key.
|
protected java.util.Vector |
extractPrimaryKeyFromRow(Record rowContainingPrimaryKey,
java.lang.Class theClass)
INTERNAL:
Extract primary key from a row
|
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow)
ADVANCED:
Query the cache in-memory.
|
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
ADVANCED:
Query the cache in-memory.
|
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean shouldReturnInvalidatedObjects)
ADVANCED:
Query the cache in-memory.
|
CacheKey |
getCacheKeyForObject(java.lang.Object object,
ClassDescriptor descriptor)
INTERNAL:
Retrieve the cache key for the given object from the identity maps
|
CacheKey |
getCacheKeyForObject(java.util.Vector primaryKey,
java.lang.Class myClass,
ClassDescriptor descriptor)
INTERNAL:
Retrieve the cache key for the given identity information
|
java.util.Vector |
getClassesRegistered()
INTERNAL:
This method is used to get a list of those classes with IdentityMaps in the Session.
|
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow)
ADVANCED:
Query the cache in-memory.
|
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy)
ADVANCED:
Query the cache in-memory.
|
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean conforming)
INTERNAL:
Query the cache in-memory.
|
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean conforming,
boolean shouldReturnInvalidatedObjects)
INTERNAL:
Query the cache in-memory.
|
java.lang.Object |
getFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean conforming,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
INTERNAL:
Query the cache in-memory.
|
java.lang.Object |
getFromIdentityMap(java.lang.Object object)
ADVANCED:
Return the object from the identity with primary and class of the given object.
|
java.lang.Object |
getFromIdentityMap(Record rowContainingPrimaryKey,
java.lang.Class theClass)
ADVANCED:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMap(Record rowContainingPrimaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects)
ADVANCED:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
ADVANCED:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects)
ADVANCED:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMapWithDeferredLock(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
INTERNAL:
Return the object from the identity with the primary and class.
|
java.lang.Object |
getFromIdentityMapWithDeferredLock(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Return the object from the identity with the primary and class.
|
IdentityMap |
getIdentityMap(java.lang.Class theClass)
INTERNAL:
Get the identity map for the given class from the IdentityMapManager
|
IdentityMap |
getIdentityMap(ClassDescriptor descriptor)
INTERNAL:
Get the identity map for the given class from the IdentityMapManager
|
IdentityMapManager |
getIdentityMapManager()
INTERNAL:
Get the IdentityMapManager for this IdentityMapAccessor
This method should be used for all IdentityMapManager access since it may
be overridden in sub classes.
|
long |
getRemainingValidTime(java.lang.Object object)
ADVANCED:
Return the remaining life of this object.
|
AbstractSession |
getSession()
INTERNAL:
get the session associated with this IdentityMapAccessor
|
java.lang.Object |
getWrapper(java.util.Vector primaryKey,
java.lang.Class theClass)
INTERNAL:
Get the wrapper object from the cache key associated with the given primary key,
this is used for EJB.
|
WriteLockManager |
getWriteLockManager()
INTERNAL:
Returns the single write Lock manager for this session
|
java.lang.Object |
getWriteLockValue(java.lang.Object object)
ADVANCED:
Extract the write lock value from the identity map.
|
java.lang.Object |
getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass)
ADVANCED:
Extract the write lock value from the identity map.
|
java.lang.Object |
getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
ADVANCED:
Extract the write lock value from the identity map.
|
void |
initializeAllIdentityMaps()
PUBLIC:
Reset the entire object cache.
|
void |
initializeIdentityMap(java.lang.Class theClass)
PUBLIC:
Reset the identity map for only the instances of the class.
|
void |
initializeIdentityMaps()
PUBLIC:
Reset the entire local object cache.
|
CacheKey |
internalPutInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime,
ClassDescriptor descriptor)
INTERNAL:
Register the object with the identity map.
|
void |
invalidateAll()
ADVANCED:
Set all of the objects from all identity maps to be invalid in TopLink's
identity maps.
|
void |
invalidateClass(java.lang.Class myClass)
ADVANCED:
Set all of the objects of a specific class to be invalid in TopLink's identity maps
Will set the recurse on inheritance to true.
|
void |
invalidateClass(java.lang.Class myClass,
boolean recurse)
ADVANCED:
Set all of the objects of a specific class to be invalid in TopLink's identity maps.
|
void |
invalidateObject(java.lang.Object object)
ADVANCED:
Set an object to be invalid in the TopLink identity maps.
|
void |
invalidateObject(Record rowContainingPrimaryKey,
java.lang.Class theClass)
ADVANCED:
Set an object to be invalid in the TopLink identity maps.
|
void |
invalidateObject(java.util.Vector primaryKey,
java.lang.Class theClass)
ADVANCED:
Set an object to be invalid in the TopLink identity maps.
|
void |
invalidateObjects(Expression selectionCriteria)
ADVANCED:
Set all of the objects from the given Expression to be invalid in the TopLink Identity Maps
|
void |
invalidateObjects(java.util.Vector collection)
ADVANCED:
Set all of the objects in the given collection to be invalid in the TopLink Identity Maps
This method will take no action for any objects in the collection that do not exist in the cache.
|
boolean |
isValid(AbstractRecord rowContainingPrimaryKey,
java.lang.Class theClass)
ADVANCED:
Return true if this object is valid in TopLink's identity maps
return false otherwise
|
boolean |
isValid(java.lang.Object object)
ADVANCED:
Return true if this object is valid in TopLink's identity maps
return false otherwise
|
boolean |
isValid(java.util.Vector primaryKey,
java.lang.Class theClass)
ADVANCED:
Return true if this object is valid in TopLink's identity maps
return false otherwise
|
void |
printIdentityMap(java.lang.Class businessClass)
PUBLIC:
Used to print all the objects in the identity map of the passed in class.
|
void |
printIdentityMapLocks()
PUBLIC:
Used to print all the locks in every identity map in this session.
|
void |
printIdentityMaps()
PUBLIC:
Used to print all the objects in every identity map in this session.
|
java.lang.Object |
putInIdentityMap(java.lang.Object object)
ADVANCED:
Register the object with the identity map.
|
java.lang.Object |
putInIdentityMap(java.lang.Object object,
java.util.Vector key)
ADVANCED:
Register the object with the identity map.
|
java.lang.Object |
putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue)
ADVANCED:
Register the object with the identity map.
|
java.lang.Object |
putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime)
ADVANCED:
Register the object with the identity map.
|
java.lang.Object |
putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime,
ClassDescriptor descriptor)
ADVANCED:
Register the object with the identity map.
|
void |
releaseWriteLock()
INTERNAL:
Lock the entire cache if the cache isolation requires.
|
java.lang.Object |
removeFromIdentityMap(java.lang.Object object)
ADVANCED:
Remove the object from the object cache.
|
java.lang.Object |
removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
ADVANCED:
Remove the object from the object cache.
|
java.lang.Object |
removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Remove the object from the object cache.
|
void |
setIdentityMapManager(IdentityMapManager identityMapManager)
INTERNAL:
Set the IdentityMapManager for this IdentityMapAccessor
|
void |
setWrapper(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object wrapper)
INTERNAL:
Update the wrapper object the cache key associated with the given primary key,
this is used for EJB.
|
void |
updateWriteLockValue(java.lang.Object object,
java.lang.Object writeLockValue)
ADVANCED:
Update the write lock value in the identity map.
|
void |
updateWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object writeLockValue)
ADVANCED:
Update the write lock value in the identity map.
|
void |
validateCache()
INTERNAL:
This can be used to help debugging an object identity problem.
|
protected IdentityMapManager identityMapManager
protected AbstractSession session
public IdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
public CacheKey acquireDeferredLock(java.util.Vector primarKey, java.lang.Class javaClass, ClassDescriptor descriptor)
public CacheKey acquireLock(java.util.Vector primarKey, java.lang.Class javaClass, ClassDescriptor descriptor)
public CacheKey acquireLock(java.util.Vector primaryKey, java.lang.Class domainClass, boolean forMerge, ClassDescriptor descriptor)
IdentityMap#aquirepublic CacheKey acquireLockNoWait(java.util.Vector primaryKey, java.lang.Class domainClass, boolean forMerge, ClassDescriptor descriptor)
IdentityMap#aquirepublic CacheKey acquireReadLockOnCacheKey(java.util.Vector primaryKey, java.lang.Class domainClass, ClassDescriptor descriptor)
public CacheKey acquireReadLockOnCacheKeyNoWait(java.util.Vector primaryKey, java.lang.Class domainClass, ClassDescriptor descriptor)
public boolean acquireWriteLock()
public void clearQueryCache()
public void clearQueryCache(ReadQuery query)
public void clearQueryCache(java.lang.String sessionQueryName)
public void clearQueryCache(java.lang.String descriptorQueryName,
java.lang.Class queryClass)
public boolean containsKey(java.util.Vector key,
java.lang.Class theClass,
ClassDescriptor descriptor)
public boolean containsObjectInIdentityMap(java.lang.Object object)
containsObjectInIdentityMap in interface IdentityMapAccessorobject - Objectpublic boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
containsObjectInIdentityMap in interface IdentityMapAccessorprimaryKey - VectortheClass - Classpublic boolean containsObjectInIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
public boolean containsObjectInIdentityMap(Record rowContainingPrimaryKey, java.lang.Class theClass)
containsObjectInIdentityMap in interface IdentityMapAccessorrowContainingPrimaryKey - RecordtheClass - Class type to be foundprotected java.util.Vector extractPrimaryKeyFromRow(Record rowContainingPrimaryKey, java.lang.Class theClass)
DatabaseRow - to extract primary key fromClass - public CacheKey getCacheKeyForObject(java.lang.Object object, ClassDescriptor descriptor)
Object - object the object to get the cache key forpublic java.util.Vector getClassesRegistered()
public java.util.Vector getAllFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow) throws QueryException
QueryExceptionpublic java.util.Vector getAllFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean shouldReturnInvalidatedObjects) throws QueryException
getAllFromIdentityMap in interface IdentityMapAccessorselectionCriteria - Expression selecting the Objects to be returnedtheClass - Class to be consideredtranslationRow - RecordvalueHolderPolicy - see
InMemoryQueryIndirectionPolicyshouldReturnInvalidatedObjects - boolean - true if only invalid Objects should be returnedQueryExceptionpublic java.util.Vector getAllFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy) throws QueryException
getAllFromIdentityMap in interface IdentityMapAccessorselectionCriteria - Expression selecting the Objects to be returnedtheClass - Class to be consideredtranslationRow - RecordvalueHolderPolicy - see
InMemoryQueryIndirectionPolicyQueryExceptionpublic java.lang.Object getFromIdentityMap(java.lang.Object object)
getFromIdentityMap in interface IdentityMapAccessorobject - Objectpublic CacheKey getCacheKeyForObject(java.util.Vector primaryKey, java.lang.Class myClass, ClassDescriptor descriptor)
Vector - the primary key of the cache key to be retrievedClass - the class of the cache key to be retrievedpublic java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass)
getFromIdentityMap in interface IdentityMapAccessorprimaryKey - VectortheClass - Classpublic java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
public java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects)
getFromIdentityMap in interface IdentityMapAccessorprimaryKey - VectortheClass - ClassshouldReturnInvalidatedObjects - InMemoryQueryIndirectionPolicypublic java.lang.Object getFromIdentityMap(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
public java.lang.Object getFromIdentityMap(Record rowContainingPrimaryKey, java.lang.Class theClass)
getFromIdentityMap in interface IdentityMapAccessorrowContainingPrimaryKey - RecordtheClass - Classpublic java.lang.Object getFromIdentityMap(Record rowContainingPrimaryKey, java.lang.Class theClass, boolean shouldReturnInvalidatedObjects)
getFromIdentityMap in interface IdentityMapAccessorrowContainingPrimaryKey - RecordtheClass - ClassshouldReturnInvalidatedObjects - booleanpublic java.lang.Object getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow) throws QueryException
getFromIdentityMap in interface IdentityMapAccessorselectionCriteria - ExpressiontheClass - ClasstranslationRow - RecordQueryExceptionpublic java.lang.Object getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy) throws QueryException
getFromIdentityMap in interface IdentityMapAccessorselectionCriteria - ExpressiontheClass - ClasstranslationRow - RecordvalueHolderPolicy - see InMemoryQueryIndirectionPolicyQueryExceptionpublic java.lang.Object getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean conforming)
public java.lang.Object getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean conforming, boolean shouldReturnInvalidatedObjects)
public java.lang.Object getFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean conforming, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor)
public java.lang.Object getFromIdentityMapWithDeferredLock(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
public java.lang.Object getFromIdentityMapWithDeferredLock(java.util.Vector primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
public IdentityMapManager getIdentityMapManager()
public IdentityMap getIdentityMap(java.lang.Class theClass)
public IdentityMap getIdentityMap(ClassDescriptor descriptor)
public long getRemainingValidTime(java.lang.Object object)
getRemainingValidTime in interface IdentityMapAccessorobject - Object under considerationpublic AbstractSession getSession()
public java.lang.Object getWrapper(java.util.Vector primaryKey,
java.lang.Class theClass)
public WriteLockManager getWriteLockManager()
public java.lang.Object getWriteLockValue(java.lang.Object object)
getWriteLockValue in interface IdentityMapAccessorobject - Objectpublic java.lang.Object getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass)
getWriteLockValue in interface IdentityMapAccessorprimaryKey - VectortheClass - Classpublic java.lang.Object getWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
public void initializeAllIdentityMaps()
NOTE: be careful using this method. This method blows away both this session's and its parents caches, this includes the server cache or any other cache. This throws away any objects that have been read in. Extream caution should be used before doing this because object identity will no longer be maintained for any objects currently read in. This should only be called if the application knows that it no longer has references to object held in the cache.
initializeAllIdentityMaps in interface IdentityMapAccessorpublic void initializeIdentityMap(java.lang.Class theClass)
initializeIdentityMap in interface IdentityMapAccessortheClass - Classpublic void initializeIdentityMaps()
initializeIdentityMaps in interface IdentityMapAccessorpublic void invalidateObject(java.lang.Object object)
invalidateObject in interface IdentityMapAccessorobject - Objectpublic void invalidateObject(java.util.Vector primaryKey,
java.lang.Class theClass)
invalidateObject in interface IdentityMapAccessorprimaryKey - VectortheClass - Classpublic void invalidateObject(Record rowContainingPrimaryKey, java.lang.Class theClass)
invalidateObject in interface IdentityMapAccessorrowContainingPrimaryKey - RecordtheClass - Classpublic void invalidateObjects(Expression selectionCriteria)
invalidateObjects in interface IdentityMapAccessorselectionCriteria - Expressionpublic void invalidateObjects(java.util.Vector collection)
invalidateObjects in interface IdentityMapAccessorcollection - Vector of Objects to be invalidatedpublic void invalidateClass(java.lang.Class myClass)
invalidateClass in interface IdentityMapAccessormyClass - Classpublic void invalidateClass(java.lang.Class myClass,
boolean recurse)
invalidateClass in interface IdentityMapAccessormyClass - Classrecurse - booleanpublic void invalidateAll()
invalidateAll in interface IdentityMapAccessorpublic boolean isValid(java.lang.Object object)
isValid in interface IdentityMapAccessorobject - Objectpublic boolean isValid(java.util.Vector primaryKey,
java.lang.Class theClass)
isValid in interface IdentityMapAccessorprimaryKey - VectortheClass - Classpublic boolean isValid(AbstractRecord rowContainingPrimaryKey, java.lang.Class theClass)
isValid in interface IdentityMapAccessorrowContainingPrimaryKey - AbstractRecordtheClass - Classpublic void printIdentityMap(java.lang.Class businessClass)
printIdentityMap in interface IdentityMapAccessorbusinessClass - Classpublic void printIdentityMaps()
printIdentityMaps in interface IdentityMapAccessorpublic void printIdentityMapLocks()
printIdentityMapLocks in interface IdentityMapAccessorpublic java.lang.Object putInIdentityMap(java.lang.Object object)
putInIdentityMap in interface IdentityMapAccessorobject - Objectpublic java.lang.Object putInIdentityMap(java.lang.Object object,
java.util.Vector key)
putInIdentityMap in interface IdentityMapAccessorobject - Objectkey - Vectorpublic java.lang.Object putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue)
putInIdentityMap in interface IdentityMapAccessorobject - Objectkey - VectorwriteLockValue - Object for versioningpublic java.lang.Object putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime)
putInIdentityMap in interface IdentityMapAccessorobject - Objectkey - VectorwriteLockValue - Object for versioningreadTime - long, time in millisecondspublic java.lang.Object putInIdentityMap(java.lang.Object object,
java.util.Vector key,
java.lang.Object writeLockValue,
long readTime,
ClassDescriptor descriptor)
public CacheKey internalPutInIdentityMap(java.lang.Object object, java.util.Vector key, java.lang.Object writeLockValue, long readTime, ClassDescriptor descriptor)
public void releaseWriteLock()
public java.lang.Object removeFromIdentityMap(java.lang.Object object)
removeFromIdentityMap in interface IdentityMapAccessorobject - Objectpublic java.lang.Object removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass)
removeFromIdentityMap in interface IdentityMapAccessorkey - VectortheClass - Classpublic java.lang.Object removeFromIdentityMap(java.util.Vector key,
java.lang.Class theClass,
ClassDescriptor descriptor)
public void setIdentityMapManager(IdentityMapManager identityMapManager)
public void setWrapper(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object wrapper)
public void updateWriteLockValue(java.lang.Object object,
java.lang.Object writeLockValue)
updateWriteLockValue in interface IdentityMapAccessorobject - ObjectwriteLockValue - Object for versioningpublic void updateWriteLockValue(java.util.Vector primaryKey,
java.lang.Class theClass,
java.lang.Object writeLockValue)
updateWriteLockValue in interface IdentityMapAccessorprimaryKey - VectortheClass - ClasswriteLockValue - Object for versioningpublic void validateCache()
validateCache in interface IdentityMapAccessor