Uses of Class
org.eclipse.persistence.internal.identitymaps.CacheKey
-
-
Uses of CacheKey in org.eclipse.persistence.descriptors
Methods in org.eclipse.persistence.descriptors that return CacheKey Modifier and Type Method Description CacheKey
CachePolicy. checkCacheByIndex(Expression expression, AbstractRecord translationRow, ClassDescriptor descriptor, AbstractSession session)
INTERNAL: Lookup the expression in the cache if it contains any indexes.Methods in org.eclipse.persistence.descriptors with parameters of type CacheKey Modifier and Type Method Description void
CachePolicy. indexObjectInCache(CacheKey cacheKey, Object object, ClassDescriptor descriptor, AbstractSession session, boolean refresh)
INTERNAL: Index the object by index in the cache using the object.void
CachePolicy. indexObjectInCache(CacheKey cacheKey, AbstractRecord databaseRow, Object domainObject, ClassDescriptor descriptor, AbstractSession session, boolean refresh)
INTERNAL: Index the object by index in the cache using its row.void
FieldsLockingPolicy. mergeIntoParentCache(CacheKey unitOfWorkCacheKey, CacheKey parentSessionCacheKey)
INTERNAL: This method should merge changes from the parent into the child.void
VersionLockingPolicy. mergeIntoParentCache(CacheKey unitOfWorkCacheKey, CacheKey parentSessionCacheKey)
INTERNAL: This method should merge changes from the parent into the child. -
Uses of CacheKey in org.eclipse.persistence.descriptors.invalidation
Methods in org.eclipse.persistence.descriptors.invalidation with parameters of type CacheKey Modifier and Type Method Description abstract long
CacheInvalidationPolicy. getExpiryTimeInMillis(CacheKey key)
INTERNAL: Get the next time when this object will become invalidlong
DailyCacheInvalidationPolicy. getExpiryTimeInMillis(CacheKey key)
INTERNAL: Return the next expiry time.long
NoExpiryCacheInvalidationPolicy. getExpiryTimeInMillis(CacheKey key)
INTERNAL: Since this policy implements no expiry, this will always return NO_EXPIRYlong
TimeToLiveCacheInvalidationPolicy. getExpiryTimeInMillis(CacheKey key)
INTERNAL: Return the next expiry time.long
CacheInvalidationPolicy. getRemainingValidTime(CacheKey key)
INTERNAL: Return the remaining life of this objectlong
NoExpiryCacheInvalidationPolicy. getRemainingValidTime(CacheKey key)
INTERNAL: Return the remaining life of this object Override the default implementation.boolean
CacheInvalidationPolicy. isInvalidated(CacheKey key)
INTERNAL: return true if this object is expire, false otherwise.abstract boolean
CacheInvalidationPolicy. isInvalidated(CacheKey key, long currentTimeMillis)
INTERNAL: return true if this object is expire, false otherwise.boolean
DailyCacheInvalidationPolicy. isInvalidated(CacheKey key, long currentTimeMillis)
INTERNAL: Return true if this object has expire or is invalidboolean
NoExpiryCacheInvalidationPolicy. isInvalidated(CacheKey key)
INTERNAL: This will return true if the object is set to be invalid, false otherwise.boolean
NoExpiryCacheInvalidationPolicy. isInvalidated(CacheKey key, long currentTimeMillis)
INTERNAL: This will return true if the object is set to be invalid, false otherwise.boolean
TimeToLiveCacheInvalidationPolicy. isInvalidated(CacheKey key, long currentTimeMillis)
INTERNAL: Return true if this object is set as invalid or has expired. -
Uses of CacheKey in org.eclipse.persistence.eis.mappings
Methods in org.eclipse.persistence.eis.mappings with parameters of type CacheKey Modifier and Type Method Description protected Object
EISCompositeCollectionMapping. buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentsCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession)
protected Object
EISCompositeObjectMapping. buildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession)
Object
EISOneToManyMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the reference attribute or a value holder.Object
EISOneToOneMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession session, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object. -
Uses of CacheKey in org.eclipse.persistence.internal.descriptors
Methods in org.eclipse.persistence.internal.descriptors that return CacheKey Modifier and Type Method Description CacheKey
PersistenceEntity. _persistence_getCacheKey()
Methods in org.eclipse.persistence.internal.descriptors with parameters of type CacheKey Modifier and Type Method Description void
PersistenceEntity. _persistence_setCacheKey(CacheKey cacheKey)
void
ObjectBuilder. buildAttributesIntoObject(Object domainObject, CacheKey cacheKey, AbstractRecord databaseRow, ObjectBuildingQuery query, JoinedAttributeManager joinManager, FetchGroup executionFetchGroup, boolean forRefresh, AbstractSession targetSession)
Each mapping is recursed to assign values from the Record to the attributes in the domain object.protected boolean
ObjectBuilder. buildAttributesIntoObjectSOP(Object domainObject, CacheKey cacheKey, AbstractRecord databaseRow, ObjectBuildingQuery query, JoinedAttributeManager joinManager, FetchGroup executionFetchGroup, boolean forRefresh, AbstractSession targetSession)
Each mapping is recursed to assign values from the Record to the attributes in the domain object.void
ObjectBuilder. buildAttributesIntoWorkingCopyClone(Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, UnitOfWorkImpl unitOfWork, boolean forRefresh)
INTERNAL: For reading through the write connection when in transaction, populate the clone directly from the database row.protected boolean
ObjectBuilder. buildAttributesIntoWorkingCopyCloneSOP(Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, UnitOfWorkImpl unitOfWork, boolean forRefresh)
For reading through the write connection when in transaction, populate the clone directly from the database row.protected Object
ObjectBuilder. buildObject(boolean returnCacheKey, ObjectBuildingQuery query, AbstractRecord databaseRow, AbstractSession session, Object primaryKey, CacheKey preFetchedCacheKey, ClassDescriptor concreteDescriptor, JoinedAttributeManager joinManager)
Return an instance of the receivers javaClass.protected Object
ObjectBuilder. buildObjectInUnitOfWork(ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, UnitOfWorkImpl unitOfWork, Object primaryKey, CacheKey preFetchedCacheKey, ClassDescriptor concreteDescriptor)
For executing all reads on the UnitOfWork, the session when building objects from rows will now be the UnitOfWork.protected Object
ObjectBuilder. buildProtectedObject(boolean returnCacheKey, ObjectBuildingQuery query, AbstractRecord databaseRow, AbstractSession session, Object primaryKey, CacheKey preFetchedCacheKey, ClassDescriptor concreteDescriptor, JoinedAttributeManager joinManager)
Return an instance of the receivers javaClass.protected Object
ObjectBuilder. buildWorkingCopyCloneFromRow(ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, UnitOfWorkImpl unitOfWork, Object primaryKey, CacheKey preFetchedCacheKey)
INTERNAL: Builds a working copy clone directly from the database row.protected Object
ObjectBuilder. buildWorkingCopyCloneNormally(ObjectBuildingQuery query, AbstractRecord databaseRow, UnitOfWorkImpl unitOfWork, Object primaryKey, CacheKey preFetchedCacheKey, ClassDescriptor concreteDescriptor, JoinedAttributeManager joinManager)
buildWorkingCopyCloneFromRow is an alternative to this which is the normal behavior.void
ObjectBuilder. cacheForeignKeyValues(Object source, CacheKey cacheKey, ClassDescriptor descriptor, AbstractSession session)
INTERNAL: This method is used to store the FK values used for this mapping in the cachekey.void
ObjectBuilder. cacheForeignKeyValues(AbstractRecord databaseRecord, CacheKey cacheKey, AbstractSession session)
INTERNAL: This method is used to store the FK values used for this mapping in the cachekey.protected void
ObjectBuilder. copyQueryInfoToCacheKey(CacheKey cacheKey, ObjectBuildingQuery query, AbstractRecord databaseRow, AbstractSession session, ClassDescriptor concreteDescriptor)
Initialize a cache key.protected void
ObjectBuilder. loadBatchReadAttributes(ClassDescriptor concreteDescriptor, Object sourceObject, CacheKey cacheKey, AbstractRecord databaseRow, ObjectBuildingQuery query, JoinedAttributeManager joinManager, boolean isTargetProtected)
protected void
ObjectBuilder. loadJoinedAttributes(ClassDescriptor concreteDescriptor, Object sourceObject, CacheKey cacheKey, AbstractRecord databaseRow, JoinedAttributeManager joinManager, ObjectBuildingQuery query, boolean isTargetProtected)
void
OptimisticLockingPolicy. mergeIntoParentCache(CacheKey unitOfWorkCacheKey, CacheKey parentSessionCacheKey)
INTERNAL: This method should merge changes from the parent into the child.void
ObjectBuilder. populateAttributesForClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
Clones the attributes of the specified object.protected boolean
ObjectBuilder. refreshObjectIfRequired(ClassDescriptor concreteDescriptor, CacheKey cacheKey, Object domainObject, ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, AbstractSession session, boolean targetIsProtected)
This method is called when a cached Entity needs to be refreshedvoid
ObjectBuilder. updateCachedAttributes(PersistenceEntity persistenceEntity, CacheKey cacheKey, Object primaryKey)
INTERNAL: Used to updated any attributes that may be cached on a woven entity -
Uses of CacheKey in org.eclipse.persistence.internal.dynamic
Fields in org.eclipse.persistence.internal.dynamic declared as CacheKey Modifier and Type Field Description protected CacheKey
DynamicEntityImpl. cacheKey
Methods in org.eclipse.persistence.internal.dynamic that return CacheKey Modifier and Type Method Description CacheKey
DynamicEntityImpl. _persistence_getCacheKey()
Methods in org.eclipse.persistence.internal.dynamic with parameters of type CacheKey Modifier and Type Method Description void
DynamicEntityImpl. _persistence_setCacheKey(CacheKey cacheKey)
-
Uses of CacheKey in org.eclipse.persistence.internal.helper
Methods in org.eclipse.persistence.internal.helper that return CacheKey Modifier and Type Method Description CacheKey
WriteLockManager. acquireLockAndRelatedLocks(Object objectForClone, Map lockedObjects, Map refreshedObjects, CacheKey cacheKey, ClassDescriptor descriptor, AbstractSession cloningSession)
INTERNAL: This is a recursive method used to acquire read locks on all objects that will be cloned.CacheKey
WriteLockManager. appendLock(Object primaryKey, Object objectToLock, ClassDescriptor descriptor, MergeManager mergeManager, AbstractSession session)
INTERNAL: This method will be called by a merging thread that is attempting to lock a new object that was not locked previously.protected CacheKey
WriteLockManager. attemptToAcquireLock(ClassDescriptor descriptor, Object primaryKey, AbstractSession session)
INTERNAL: This method performs the operations of finding the cacheKey and locking it if possible.protected CacheKey
WriteLockManager. checkAndLockObject(Object objectToLock, Map lockedObjects, Map refreshedObjects, DatabaseMapping mapping, AbstractSession cloningSession)
INTERNAL: Simply check that the object is not already locked then pass it on to the locking methodCacheKey
WriteLockManager. traverseRelatedLocks(Object objectForClone, Map lockedObjects, Map refreshedObjects, ClassDescriptor descriptor, AbstractSession cloningSession)
INTERNAL: Traverse the object and acquire locks on all related objects.protected CacheKey
WriteLockManager. waitOnObjectLock(ClassDescriptor descriptor, Object primaryKey, AbstractSession session, int waitTime)
INTERNAL: This method performs the operations of finding the cacheKey and locking it if possible.Methods in org.eclipse.persistence.internal.helper with parameters of type CacheKey Modifier and Type Method Description CacheKey
WriteLockManager. acquireLockAndRelatedLocks(Object objectForClone, Map lockedObjects, Map refreshedObjects, CacheKey cacheKey, ClassDescriptor descriptor, AbstractSession cloningSession)
INTERNAL: This is a recursive method used to acquire read locks on all objects that will be cloned.Map
WriteLockManager. acquireLocksForClone(Object objectForClone, ClassDescriptor descriptor, CacheKey cacheKey, AbstractSession cloningSession)
INTERNAL: This method will return once the object is locked and all non-indirect related objects are also locked. -
Uses of CacheKey in org.eclipse.persistence.internal.identitymaps
Subclasses of CacheKey in org.eclipse.persistence.internal.identitymaps Modifier and Type Class Description class
HardCacheWeakIdentityMap.ReferenceCacheKey
Inner class to define the specialized weak cache key.class
LinkedCacheKey
Purpose: Provides the capability to insert CacheKeys into a Linked List.class
QueueableWeakCacheKey
class
SoftCacheKey
Purpose: Container class for storing objects in an IdentityMap.class
WeakCacheKey
Purpose: Container class for storing objects in an IdentityMap.Fields in org.eclipse.persistence.internal.identitymaps declared as CacheKey Modifier and Type Field Description protected CacheKey
AbstractIdentityMapEnumeration. nextKey
Next key to be returned.Fields in org.eclipse.persistence.internal.identitymaps with type parameters of type CacheKey Modifier and Type Field Description protected Map<Object,CacheKey>
FullIdentityMap. cacheKeys
Map of CacheKeys stored using their key.protected Iterator<CacheKey>
AbstractIdentityMapEnumeration. cacheKeysIterator
CacheKey
instances iterator.Methods in org.eclipse.persistence.internal.identitymaps that return CacheKey Modifier and Type Method Description CacheKey
AbstractIdentityMap. acquireDeferredLock(Object primaryKey, boolean isCacheCheckComplete)
Acquire a deferred lock on the object.CacheKey
IdentityMap. acquireDeferredLock(Object primaryKey, boolean isCacheCheckComplete)
Acquire a deferred lock on the object.CacheKey
IdentityMapManager. acquireDeferredLock(Object primaryKey, Class domainClass, ClassDescriptor descriptor, boolean isCacheCheckComplete)
Provides access for setting a deferred lock on an object in the IdentityMap.CacheKey
UnitOfWorkIdentityMap. acquireDeferredLock(Object primaryKey, boolean isCacheCheckComplete)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. acquireLock(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete)
Acquire an active lock on the object.CacheKey
IdentityMap. acquireLock(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete)
Acquire an active lock on the object.CacheKey
IdentityMapManager. acquireLock(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, boolean isCacheCheckComplete)
Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
UnitOfWorkIdentityMap. acquireLock(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. acquireLockNoWait(Object primaryKey, boolean forMerge)
Acquire an active lock on the object, if not already locked.CacheKey
IdentityMap. acquireLockNoWait(Object primaryKey, boolean forMerge)
Acquire an active lock on the object, if not already locked.CacheKey
IdentityMapManager. acquireLockNoWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor)
Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
UnitOfWorkIdentityMap. acquireLockNoWait(Object primaryKey, boolean forMerge)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. acquireLockWithWait(Object primaryKey, boolean forMerge, int wait)
Acquire an active lock on the object, if not already locked.CacheKey
IdentityMap. acquireLockWithWait(Object primaryKey, boolean forMerge, int wait)
Acquire an active lock on the object, if not already locked.CacheKey
IdentityMapManager. acquireLockWithWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, int wait)
Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
UnitOfWorkIdentityMap. acquireLockWithWait(Object primaryKey, boolean forMerge, int wait)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. acquireReadLockOnCacheKey(Object primaryKey)
Acquire a read lock on the object.CacheKey
IdentityMap. acquireReadLockOnCacheKey(Object primaryKey)
Acquire a read lock on the object.CacheKey
IdentityMapManager. acquireReadLockOnCacheKey(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
UnitOfWorkIdentityMap. acquireReadLockOnCacheKey(Object primaryKey)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. acquireReadLockOnCacheKeyNoWait(Object primaryKey)
Acquire a read lock on the object, if not already locked.CacheKey
IdentityMap. acquireReadLockOnCacheKeyNoWait(Object primaryKey)
Acquire a read lock on the object, if not already locked.CacheKey
IdentityMapManager. acquireReadLockOnCacheKeyNoWait(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
UnitOfWorkIdentityMap. acquireReadLockOnCacheKeyNoWait(Object primaryKey)
Avoid acquiring any lock as uow is single threaded.CacheKey
AbstractIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
Create the correct type of CacheKey for this map.CacheKey
CacheIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
CacheKey
HardCacheWeakIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
Use a ReferenceCacheKey that also stores the linked list node to manage the LRU sub-cache of references.CacheKey
SoftIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
CacheKey
UnitOfWorkIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
CacheKey
WeakIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
CacheKey
WeakUnitOfWorkIdentityMap. createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)
abstract CacheKey
AbstractIdentityMap. getCacheKey(Object primaryKey, boolean forMerge)
Get the cache key (with object) for the primary key.CacheKey
CacheIdentityMap. getCacheKey(Object primaryKeys, boolean forMerge)
Access the object within the table for the given primaryKey.CacheKey
FullIdentityMap. getCacheKey(Object searchKey, boolean forMerge)
Return the cache key matching the primary key of the searchKey.CacheKey
IdentityMap. getCacheKey(Object primaryKey, boolean forMerge)
Get the cache key (with object) for the primary key.CacheKey
NoIdentityMap. getCacheKey(Object searchKey, boolean forMerge)
Return null as no objects are cached.CacheKey
IdentityMapManager. getCacheKeyByIndex(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor)
Return the cache key for the cache index or null if not found.CacheKey
AbstractIdentityMap. getCacheKeyForLock(Object primaryKey)
Get the cache key (with object) for the primary key.CacheKey
IdentityMap. getCacheKeyForLock(Object primaryKey)
Get the cache key (with object) for the primary key in order to acquire a lock.CacheKey
IdentityMapManager. getCacheKeyForObject(Object primaryKey, Class theClass, ClassDescriptor descriptor, boolean forMerge)
Retrieve the cache key for the given identity information.CacheKey
IdentityMapManager. getCacheKeyForObjectForLock(Object primaryKey, Class theClass, ClassDescriptor descriptor)
Retrieve the cache key for the given identity information.protected CacheKey
AbstractIdentityMap. getCacheKeyWithReadLock(Object primaryKey)
Get the cache key (with object) for the primary key with read lock.protected CacheKey
UnitOfWorkIdentityMap. getCacheKeyWithReadLock(Object primaryKey)
Avoid acquiring any lock as uow is single threaded.protected CacheKey
AbstractIdentityMapEnumeration. getNextElement()
Get next element ofCacheKey
instances enumeration if this enumeration object has at least one more element to provide.CacheKey
CacheKey. getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.CacheKey
IdentityMapKeyEnumeration. nextElement()
Get next element ofCacheKey
enumeration if this enumeration object has at least one more element to provide.abstract CacheKey
AbstractIdentityMap. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Store the object in the cache at its primary key.CacheKey
FullIdentityMap. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Store the object in the cache at its primary key.CacheKey
HardCacheWeakIdentityMap. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Store the object in the cache at its primary key, and add to sub-cache list.CacheKey
IdentityMap. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Store the object in the cache at its primary key.CacheKey
NoIdentityMap. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Do Nothing.protected abstract CacheKey
AbstractIdentityMap. putCacheKeyIfAbsent(CacheKey cacheKey)
Return the CacheKey (with object) matching the searchKey.protected CacheKey
CacheIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Also insert the link if the cacheKey is put.protected CacheKey
FullIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Return the CacheKey (with object) matching the searchKey.protected CacheKey
NoIdentityMap. putCacheKeyIfAbsent(CacheKey cacheKey)
Return null as no objects are cached.protected CacheKey
UnitOfWorkIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Use hashmap put, as no concurrency in unit of work.protected CacheKey
WeakIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Need to check for cleanup on put.protected CacheKey
WeakUnitOfWorkIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Need to check for cleanup on put.CacheKey
IdentityMapManager. putInIdentityMap(Object domainObject, Object keys, Object writeLockValue, long readTime, ClassDescriptor descriptor)
Register the object with the identity map.Methods in org.eclipse.persistence.internal.identitymaps that return types with arguments of type CacheKey Modifier and Type Method Description Enumeration<CacheKey>
FullIdentityMap. cloneKeys()
Allow for theCacheKey
elements to be iterated.Enumeration<CacheKey>
IdentityMap. cloneKeys()
Allow for the CacheKeys to be iterated on using copy of keys enumeration.Enumeration<CacheKey>
NoIdentityMap. cloneKeys()
Return an empty enumerator.Map<Object,CacheKey>
AbstractIdentityMap. getAllCacheKeysFromIdentityMapWithEntityPK(Object[] pkList, ClassDescriptor descriptor, AbstractSession session)
ADVANCED: Using a list of Entity PK this method will attempt to bulk load the entire list from the cache.Map<Object,CacheKey>
IdentityMap. getAllCacheKeysFromIdentityMapWithEntityPK(Object[] pkList, ClassDescriptor descriptor, AbstractSession session)
ADVANCED: Using a list of Entity PK this method will attempt to bulk load the entire list from the cache.Map<Object,CacheKey>
IdentityMapManager. getAllCacheKeysFromIdentityMapWithEntityPK(Object[] pkList, ClassDescriptor descriptor, AbstractSession session)
ADVANCED: Using a list of Entity PK this method will attempt to bulk load the entire list from the cache.Map<Object,CacheKey>
FullIdentityMap. getCacheKeys()
Return the cache keys.Enumeration<CacheKey>
FullIdentityMap. keys()
Allow for the cache keys to be iterated on.Enumeration<CacheKey>
FullIdentityMap. keys(boolean checkReadLocks)
Allow for theCacheKey
elements to be iterated.Enumeration<CacheKey>
IdentityMap. keys()
Allow for the CacheKeys to be iterated on.Enumeration<CacheKey>
IdentityMap. keys(boolean checkReadLocks)
Allow for the CacheKeys to be iterated on.Enumeration<CacheKey>
NoIdentityMap. keys()
Return an empty enumerator.Enumeration<CacheKey>
NoIdentityMap. keys(boolean checkReadLocks)
Return an empty enumerator.Methods in org.eclipse.persistence.internal.identitymaps with parameters of type CacheKey Modifier and Type Method Description boolean
CacheKey. equals(CacheKey key)
Determine if the receiver is equal to key.void
IdentityMapManager. putCacheKeyByIndex(CacheIndex index, CacheId indexValues, CacheKey cacheKey, ClassDescriptor descriptor)
Index the cache key by the index values.protected abstract CacheKey
AbstractIdentityMap. putCacheKeyIfAbsent(CacheKey cacheKey)
Return the CacheKey (with object) matching the searchKey.protected CacheKey
CacheIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Also insert the link if the cacheKey is put.protected CacheKey
FullIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Return the CacheKey (with object) matching the searchKey.protected CacheKey
NoIdentityMap. putCacheKeyIfAbsent(CacheKey cacheKey)
Return null as no objects are cached.protected CacheKey
UnitOfWorkIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Use hashmap put, as no concurrency in unit of work.protected CacheKey
WeakIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Need to check for cleanup on put.protected CacheKey
WeakUnitOfWorkIdentityMap. putCacheKeyIfAbsent(CacheKey searchKey)
Need to check for cleanup on put.abstract Object
AbstractIdentityMap. remove(CacheKey cacheKey)
Remove the CacheKey from the map.Object
CacheIdentityMap. remove(CacheKey key)
Remove the LinkedCacheKey from the cache as well as from the linked list.Object
FullIdentityMap. remove(CacheKey cacheKey)
Removes the CacheKey from the map.Object
HardCacheWeakIdentityMap. remove(CacheKey cacheKey)
Remove the cache key from the map and the sub-cache list.Object
IdentityMap. remove(CacheKey cacheKey)
Remove the CacheKey from the map.Object
NoIdentityMap. remove(CacheKey searchKey)
Do Nothing.Object
UnitOfWorkIdentityMap. remove(CacheKey cacheKey)
Avoid acquiring any lock as uow is single threaded.void
FullIdentityMap. resetCacheKey(CacheKey key, Object object, Object writeLockValue, long readTime)
Reset the cache key with new data.void
UnitOfWorkIdentityMap. resetCacheKey(CacheKey key, Object object, Object writeLockValue, long readTime)
Avoid acquiring any lock as uow is single threaded.Method parameters in org.eclipse.persistence.internal.identitymaps with type arguments of type CacheKey Modifier and Type Method Description protected void
FullIdentityMap. setCacheKeys(Map<Object,CacheKey> cacheKeys)
Constructor parameters in org.eclipse.persistence.internal.identitymaps with type arguments of type CacheKey Constructor Description AbstractIdentityMapEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)
Creates an instance ofCacheKey
content enumeration.IdentityMapEnumeration(Collection<CacheKey> keys)
Creates an instance ofCacheKey
instances enumeration.IdentityMapKeyEnumeration(Collection<CacheKey> keys)
Creates an instance ofCacheKey
instances enumeration.IdentityMapKeyEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)
Creates an instance ofCacheKey
instances enumeration. -
Uses of CacheKey in org.eclipse.persistence.internal.indirection
Fields in org.eclipse.persistence.internal.indirection declared as CacheKey Modifier and Type Field Description protected CacheKey
BatchValueHolder. parentCacheKey
Methods in org.eclipse.persistence.internal.indirection with parameters of type CacheKey Modifier and Type Method Description Object
BasicIndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
INTERNAL: Return a clone of the attribute.Object
ContainerIndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
INTERNAL: Return a clone of the attribute.abstract Object
IndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
INTERNAL: Return a clone of the attribute.Object
NoIndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
INTERNAL: Return a clone of the attribute.Object
ProxyIndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
INTERNAL: Return a clone of the attribute.Object
TransparentIndirectionPolicy. cloneAttribute(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow)
Return a clone of the attribute.Object
BasicIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.Object
ContainerIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.abstract Object
IndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.Object
NoIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.Object
ProxyIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.Object
TransparentIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
INTERNAL: Return the value to be stored in the object's attribute.Constructors in org.eclipse.persistence.internal.indirection with parameters of type CacheKey Constructor Description BatchValueHolder(ReadQuery query, AbstractRecord row, ForeignReferenceMapping mapping, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)
Initialize the query-based value holder. -
Uses of CacheKey in org.eclipse.persistence.internal.oxm
Methods in org.eclipse.persistence.internal.oxm with parameters of type CacheKey Modifier and Type Method Description void
XMLObjectBuilder. buildAttributesIntoObject(Object domainObject, CacheKey cacheKey, AbstractRecord databaseRow, ObjectBuildingQuery query, JoinedAttributeManager joinManager, FetchGroup executionFetchGroup, boolean forRefresh, AbstractSession targetSession)
Override method in superclass in order to set the session on the record. -
Uses of CacheKey in org.eclipse.persistence.internal.queries
Methods in org.eclipse.persistence.internal.queries with parameters of type CacheKey Modifier and Type Method Description boolean
ContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> rows, DataReadQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: This is used for ordered List containers to add all of the elements to the collection in the order of the index field in the row.boolean
ContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> dbRows, ObjectBuildingQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: This is used for ordered List containers to add all of the elements to the collection in the order of the index field in the row.boolean
OrderedListContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> dbRows, DataReadQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: Add a list of elements to container.boolean
OrderedListContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> dbRows, ObjectBuildingQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: Add a list of elements to container.protected boolean
OrderedListContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> dbRows, ReadQuery query, CacheKey parentCacheKey)
boolean
ContainerPolicy. addInto(Object element, Object container, AbstractSession session, AbstractRecord row, DataReadQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: This is used for adding to a direct map or direct collection from the database.boolean
ContainerPolicy. addInto(Object element, Object container, AbstractSession session, AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: Add element to container.boolean
MappedKeyMapContainerPolicy. addInto(Object element, Object container, AbstractSession session, AbstractRecord row, DataReadQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: This is used for ordered List containers to add all of the elements to the collection in the order of the index field in the row.boolean
MappedKeyMapContainerPolicy. addInto(Object element, Object container, AbstractSession session, AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, boolean isTargetProtected)
INTERNAL: Add element to that implements the Map interface use the row to compute the keyvoid
ContainerPolicy. addNextValueFromIteratorInto(Object valuesIterator, Object parent, CacheKey parentCacheKey, Object toCollection, CollectionMapping mapping, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: This method is used to add the next value from an iterator built using ContainerPolicy's iteratorFor() method into the toCollection.void
MapContainerPolicy. addNextValueFromIteratorInto(Object valuesIterator, Object parent, CacheKey parentCacheKey, Object toCollection, CollectionMapping mapping, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: This method is used to add the next value from an iterator built using ContainerPolicy's iteratorFor() method into the toCollection.Object
ContainerPolicy. buildCloneForKey(Object key, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isCacheCheckComplete)
Build a clone for the key of a Map represented by this container policy if necessary.Object
MappedKeyMapContainerPolicy. buildCloneForKey(Object key, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isCacheCheckComplete)
Build a clone for the key of a Map represented by this container policy.protected Object
MapContainerPolicy. buildCloneForValue(Object value, Object parent, CacheKey parentCacheKey, CollectionMapping mapping, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
Build a clone for the value in a mapping.Object
ContainerPolicy. buildKey(AbstractRecord row, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Extract the key for the map from the provided row overridden by subclasses that deal with map keysObject
MappedKeyMapContainerPolicy. buildKey(AbstractRecord row, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Extract the key for the map from the provided row.Object
ContainerPolicy. buildKeyFromJoinedRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Extract the key for the map from the provided row overridden by subclasses that deal with map keysObject
MappedKeyMapContainerPolicy. buildKeyFromJoinedRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Extract the key for the map from the provided row. -
Uses of CacheKey in org.eclipse.persistence.internal.sessions
Fields in org.eclipse.persistence.internal.sessions declared as CacheKey Modifier and Type Field Description protected CacheKey
ObjectChangeSet. activeCacheKey
PERF: Cache the session cacheKey during the merge to avoid duplicate lookups.Fields in org.eclipse.persistence.internal.sessions with type parameters of type CacheKey Modifier and Type Field Description protected ArrayList<CacheKey>
MergeManager. acquiredLocks
Used to store the list of locks that this merge manager has acquired for this mergeMethods in org.eclipse.persistence.internal.sessions that return CacheKey Modifier and Type Method Description CacheKey
IdentityMapAccessor. acquireDeferredLock(Object primarKey, Class javaClass, ClassDescriptor descriptor, boolean isCacheCheckComplete)
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
IsolatedClientSessionIdentityMapAccessor. acquireDeferredLock(Object primaryKey, Class javaClass, ClassDescriptor descriptor, boolean isCacheCheckComplete)
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 lockCacheKey
IdentityMapAccessor. acquireLock(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, boolean isCacheCheckComplete)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IdentityMapAccessor. acquireLock(Object primarKey, Class javaClass, ClassDescriptor descriptor, boolean isCacheCheckComplete)
INTERNAL: Lock the identity map for the object, this must be done when building objects.CacheKey
IsolatedClientSessionIdentityMapAccessor. acquireLock(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, boolean isCacheCheckComplete)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IdentityMapAccessor. acquireLockNoWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IsolatedClientSessionIdentityMapAccessor. acquireLockNoWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IdentityMapAccessor. acquireLockWithWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, int wait)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IsolatedClientSessionIdentityMapAccessor. acquireLockWithWait(Object primaryKey, Class domainClass, boolean forMerge, ClassDescriptor descriptor, int wait)
INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.CacheKey
IdentityMapAccessor. acquireReadLockOnCacheKey(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
IsolatedClientSessionIdentityMapAccessor. acquireReadLockOnCacheKey(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
IdentityMapAccessor. acquireReadLockOnCacheKeyNoWait(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
IsolatedClientSessionIdentityMapAccessor. acquireReadLockOnCacheKeyNoWait(Object primaryKey, Class domainClass, ClassDescriptor descriptor)
INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.CacheKey
ObjectChangeSet. getActiveCacheKey()
INTERNAL: PERF: Return the session cache-key, cached during the merge.CacheKey
IdentityMapAccessor. getCacheKeyByIndex(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor)
Return the cache key for the cache index or null if not found.CacheKey
IsolatedClientSessionIdentityMapAccessor. getCacheKeyByIndex(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor)
Return the cache key for the cache index or null if not found.CacheKey
IdentityMapAccessor. getCacheKeyForObject(Object object)
INTERNAL: Retrieve the cache key for the given object.CacheKey
IdentityMapAccessor. getCacheKeyForObject(Object primaryKey, Class myClass, ClassDescriptor descriptor, boolean forMerge)
INTERNAL: Retrieve the cache key for the given identity information.CacheKey
IdentityMapAccessor. getCacheKeyForObject(Object object, ClassDescriptor descriptor)
INTERNAL: Retrieve the cache key for the given object from the identity maps.CacheKey
IsolatedClientSessionIdentityMapAccessor. getCacheKeyForObject(Object primaryKey, Class myClass, ClassDescriptor descriptor, boolean forMerge)
INTERNAL: Retrieve the cache key for the given identity information.CacheKey
IdentityMapAccessor. getCacheKeyForObjectForLock(Object primaryKey, Class myClass, ClassDescriptor descriptor)
INTERNAL: Retrieve the cache key for the given identity information.CacheKey
IsolatedClientSessionIdentityMapAccessor. getCacheKeyForObjectForLock(Object primaryKey, Class myClass, ClassDescriptor descriptor)
INTERNAL: Retrieve the cache key for the given identity information.protected CacheKey
AbstractSession. getCacheKeyFromTargetSessionForMerge(Object implementation, ObjectBuilder builder, ClassDescriptor descriptor, MergeManager mergeManager)
INTERNAL: For use within the merge process this method will get an object from the shared cache using a readlock.protected CacheKey
IsolatedClientSession. getCacheKeyFromTargetSessionForMerge(Object implementation, ObjectBuilder builder, ClassDescriptor descriptor, MergeManager mergeManager)
INTERNAL: For use within the merge process this method will get an object from the shared cache using a readlock.CacheKey
IdentityMapAccessor. internalPutInIdentityMap(Object object, Object key, Object writeLockValue, long readTime, ClassDescriptor descriptor)
INTERNAL: Register the object with the cache.CacheKey
IsolatedClientSessionIdentityMapAccessor. internalPutInIdentityMap(Object domainObject, Object key, Object writeLockValue, long readTime, ClassDescriptor descriptor)
ADVANCED: Register the object with the identity map.protected CacheKey
MergeManager. mergeChangesOfWorkingCopyIntoOriginal(Object clone, ObjectChangeSet objectChangeSet, ClassDescriptor descriptor, AbstractSession targetSession, UnitOfWorkImpl unitOfWork)
Recursively merge to clone into the original in its parent.CacheKey
AbstractSession. retrieveCacheKey(Object primaryKey, ClassDescriptor concreteDescriptor, JoinedAttributeManager joinManager, ObjectBuildingQuery query)
Methods in org.eclipse.persistence.internal.sessions that return types with arguments of type CacheKey Modifier and Type Method Description ArrayList<CacheKey>
MergeManager. getAcquiredLocks()
Map<Object,CacheKey>
IdentityMapAccessor. getAllCacheKeysFromIdentityMapWithEntityPK(Object[] pkList, ClassDescriptor descriptor)
ADVANCED: Using a list of Entity PK this method will attempt to bulk load the entire list from the cache.Methods in org.eclipse.persistence.internal.sessions with parameters of type CacheKey Modifier and Type Method Description void
AbstractSession. checkAndRefreshInvalidObject(Object object, CacheKey cacheKey, ClassDescriptor descriptor)
INTERNAL: Check if the object is invalid and refresh it.Object
UnitOfWorkImpl. cloneAndRegisterObject(Object original, CacheKey parentCacheKey, ClassDescriptor descriptor)
INTERNAL: Clone and register the object.Object
UnitOfWorkImpl. cloneAndRegisterObject(Object original, CacheKey parentCacheKey, CacheKey unitOfWorkCacheKey, ClassDescriptor descriptor)
INTERNAL: Clone and register the object.boolean
AbstractSession. isConsideredInvalid(Object object, CacheKey cacheKey, ClassDescriptor descriptor)
INTERNAL: Check if the object is invalid and *should* be refreshed.boolean
UnitOfWorkImpl. isConsideredInvalid(Object object, CacheKey cacheKey, ClassDescriptor descriptor)
INTERNAL: Check if the object is invalid and *should* be refreshed.protected void
UnitOfWorkImpl. populateAndRegisterObject(Object original, Object workingClone, CacheKey unitOfWorkCacheKey, CacheKey parentCacheKey, ClassDescriptor descriptor)
INTERNAL: This method is called from clone and register.void
IdentityMapAccessor. putCacheKeyByIndex(CacheIndex index, CacheId indexValues, CacheKey cacheKey, ClassDescriptor descriptor)
Index the cache key by the index values.void
IsolatedClientSessionIdentityMapAccessor. putCacheKeyByIndex(CacheIndex index, CacheId indexValues, CacheKey cacheKey, ClassDescriptor descriptor)
Index the cache key by the index values.void
ObjectChangeSet. setActiveCacheKey(CacheKey activeCacheKey)
INTERNAL: PERF: Set the session cache-key, cached during the merge.protected void
MergeManager. updateCacheKeyProperties(UnitOfWorkImpl unitOfWork, CacheKey cacheKey, Object original, Object clone, ObjectChangeSet objectChangeSet, ClassDescriptor descriptor)
INTERNAL: Update CacheKey properties with new information. -
Uses of CacheKey in org.eclipse.persistence.mappings
Methods in org.eclipse.persistence.mappings that return CacheKey Modifier and Type Method Description protected CacheKey
AggregateObjectMapping. buildWrapperCacheKeyForAggregate(CacheKey owningCacheKey, boolean targetIsProtected)
INTERNAL: Wrap the aggregate represented by this mapping in a cachekey so it can be processed my methods down the stack.Methods in org.eclipse.persistence.mappings with parameters of type CacheKey Modifier and Type Method Description protected Object
ForeignReferenceMapping. batchedValueFromRow(AbstractRecord row, ObjectLevelReadQuery query, CacheKey parentCacheKey)
INTERNAL: Retrieve the value through using batch reading.protected Object
VariableOneToOneMapping. batchedValueFromRow(AbstractRecord row, ObjectLevelReadQuery query, CacheKey parentCacheKey)
INTERNAL: Possible for future development, not currently supported.Object
AggregateObjectMapping. buildAggregateFromRow(AbstractRecord databaseRow, Object targetObject, CacheKey cacheKey, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, boolean buildShallowOriginal, AbstractSession executionSession, boolean targetIsProtected)
INTERNAL: Build and return an aggregate object from the specified row.void
AggregateMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
AggregateObjectMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.abstract void
DatabaseMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
ForeignReferenceMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
MultitenantPrimaryKeyMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.Object
AggregateCollectionMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.Object
CollectionMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.Object
DatabaseMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.Object
DirectMapMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.abstract Object
ForeignReferenceMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.Object
ObjectReferenceMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.void
AggregateMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: A combination of readFromRowIntoObject and buildClone.void
AggregateObjectMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: A combination of readFromRowIntoObject and buildClone.abstract void
DatabaseMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: A combination of readFromRowIntoObject and buildClone.void
ForeignReferenceMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: A combination of readFromRowIntoObject and buildClone.void
MultitenantPrimaryKeyMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: Extract value from the row and set the attribute to this value in the working copy clone.protected Object
AggregateMapping. buildClonePart(Object attributeValue, Object clone, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isNewObject)
INTERNAL: * Build and return a clone of the attribute.protected Object
AggregateMapping. buildClonePart(Object original, Object clone, CacheKey cacheKey, Object attributeValue, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Build and return a clone of the attribute.Object
AggregateCollectionMapping. buildElementClone(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Clone the aggregate collection, if necessary.Object
AggregateObjectMapping. buildElementClone(Object attributeValue, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Build a clone of the given element in a unitOfWorkObject
CollectionMapping. buildElementClone(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Clone the element, if necessary.Object
DirectCollectionMapping. buildElementClone(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Clone the element, if necessary.Object
OneToOneMapping. buildElementClone(Object attributeValue, Object parent, CacheKey cacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
Build a clone of the given element in a unitOfWork.protected CacheKey
AggregateObjectMapping. buildWrapperCacheKeyForAggregate(CacheKey owningCacheKey, boolean targetIsProtected)
INTERNAL: Wrap the aggregate represented by this mapping in a cachekey so it can be processed my methods down the stack.Object
AggregateObjectMapping. createMapComponentFromJoinedRow(AbstractRecord dbRow, JoinedAttributeManager joinManger, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection and a join query is executed.Object
OneToOneMapping. createMapComponentFromJoinedRow(AbstractRecord dbRow, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
AggregateCollectionMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
AggregateObjectMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
DirectMapMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
ManyToManyMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
OneToManyMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
OneToOneMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.protected void
CollectionMapping. executeBatchQuery(DatabaseQuery query, CacheKey parentCacheKey, Map referenceObjectsByKey, AbstractSession session, AbstractRecord translationRow)
INTERNAL: Prepare and execute the batch query and store the results for each source object in a map keyed by the mappings source keys of the source objects.protected void
DirectCollectionMapping. executeBatchQuery(DatabaseQuery query, CacheKey parentCacheKey, Map referenceDataByKey, AbstractSession session, AbstractRecord translationRow)
INTERNAL: Prepare and execute the batch query and store the results for each source object in a map keyed by the mappings source keys of the source objects.protected void
DirectMapMapping. executeBatchQuery(DatabaseQuery query, CacheKey parentCacheKey, Map referenceDataByKey, AbstractSession session, AbstractRecord translationRow)
INTERNAL: Prepare and execute the batch query and store the results for each source object in a map keyed by the mappings source keys of the source objects.protected void
ForeignReferenceMapping. executeBatchQuery(DatabaseQuery query, CacheKey parentCacheKey, Map referenceObjectsByKey, AbstractSession session, AbstractRecord row)
INTERNAL: Prepare and execute the batch query and store the results for each source object in a map keyed by the mappings source keys of the source objects.protected void
OneToOneMapping. executeBatchQuery(DatabaseQuery query, CacheKey parentCacheKey, Map referenceObjectsByKey, AbstractSession session, AbstractRecord translationRow)
INTERNAL: Prepare and execute the batch query and store the results for each source object in a map keyed by the mappings source keys of the source objects.Object
CollectionMapping. extractResultFromBatchQuery(ReadQuery batchQuery, CacheKey parentCacheKey, AbstractRecord sourceRow, AbstractSession session, ObjectLevelReadQuery originalQuery)
INTERNAL: Extract the value from the batch optimized query, this should be supported by most query types.Object
ForeignReferenceMapping. extractResultFromBatchQuery(ReadQuery batchQuery, CacheKey parentCacheKey, AbstractRecord sourceRow, AbstractSession session, ObjectLevelReadQuery originalQuery)
INTERNAL: Extract the value from the batch optimized query, this should be supported by most query types.Object
AggregateObjectMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Build an aggregate object from the specified row and put it in the specified target object.Object
DatabaseMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Extract value from the row and set the attribute to this value in the object.Object
ForeignReferenceMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Extract value from the row and set the attribute to this value in the object.Object
DatabaseMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession session, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: A subclass should implement this method if it wants different behavior.Object
DirectCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession session, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the reference attribute or a value holder.Object
ForeignReferenceMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the reference attribute or a value holder.Object
VariableOneToOneMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object.protected Object
CollectionMapping. valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object.protected Object
DirectCollectionMapping. valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object.protected Object
DirectMapMapping. valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object.protected Object
ForeignReferenceMapping. valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: If the query used joining or partial attributes, build the target object directly.protected Object
OneToOneMapping. valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object. -
Uses of CacheKey in org.eclipse.persistence.mappings.foundation
Methods in org.eclipse.persistence.mappings.foundation with parameters of type CacheKey Modifier and Type Method Description void
AbstractCompositeDirectCollectionMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
AbstractDirectMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
AbstractTransformationMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.Object
AbstractTransformationMapping. buildCloneForPartObject(Object attributeValue, Object original, CacheKey cacheKey, Object clone, AbstractSession cloningSession, Integer refreshCascade, boolean isExisting, boolean isFromSharedCache)
INTERNAL: Require for cloning, the part must be cloned.void
AbstractCompositeDirectCollectionMapping. buildCloneFromRow(AbstractRecord row, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: Extract value from the row and set the attribute to this value in the working copy clone.void
AbstractDirectMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: Extract value from the row and set the attribute to this value in the working copy clone.void
AbstractTransformationMapping. buildCloneFromRow(AbstractRecord record, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
INTERNAL: Extract value from the row and set the attribute to this value in the working copy clone.protected Object
AbstractCompositeCollectionMapping. buildClonePart(Object original, Object clone, CacheKey cacheKey, Object attributeValue, Integer refreshCascade, AbstractSession clonningSession)
Build and return a clone of the attribute.protected Object
AbstractCompositeDirectCollectionMapping. buildClonePart(Object attributeValue, CacheKey parentCacheKey, AbstractSession cloningSession)
Build and return a clone of the specified attribute value.protected abstract Object
AbstractCompositeCollectionMapping. buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManger, AbstractSession targetSession)
protected abstract Object
AbstractCompositeObjectMapping. buildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManger, AbstractSession targetSession)
Object
AbstractDirectMapping. buildElementClone(Object attributeValue, Object parent, CacheKey cacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
Build a clone of the given element in a unitOfWork.Object
MapKeyMapping. buildElementClone(Object element, Object parent, CacheKey cacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
Build a clone of the given element in a unitOfWorkObject
AbstractDirectMapping. createMapComponentFromJoinedRow(AbstractRecord dbRow, JoinedAttributeManager joinManger, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection and a join query is executed.Object
MapKeyMapping. createMapComponentFromJoinedRow(AbstractRecord dbRow, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection and a join query is used.Object
AbstractCompositeCollectionMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
AbstractCompositeDirectCollectionMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
AbstractDirectMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
MapComponentMapping. createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection.Object
AbstractTransformationMapping. readFromRowIntoObject(AbstractRecord row, JoinedAttributeManager joinManager, Object object, CacheKey parentCacheKey, ObjectBuildingQuery query, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Extract value from the row and set the attribute to the value in the object.Object
AbstractCompositeCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Build and return an aggregate collection from the specified row.Object
AbstractCompositeDirectCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Build the nested collection from the database row.Object
AbstractCompositeObjectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Extract and return the aggregate object from the specified row.Object
AbstractDirectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the mapping's attribute value from the row. -
Uses of CacheKey in org.eclipse.persistence.mappings.structures
Methods in org.eclipse.persistence.mappings.structures with parameters of type CacheKey Modifier and Type Method Description protected Object
ObjectArrayMapping. buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession)
protected Object
StructureMapping. buildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession)
Object
ReferenceMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object. -
Uses of CacheKey in org.eclipse.persistence.oxm.mappings
Methods in org.eclipse.persistence.oxm.mappings with parameters of type CacheKey Modifier and Type Method Description void
XMLAnyAttributeMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
XMLAnyCollectionMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
XMLAnyObjectMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
XMLChoiceCollectionMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
XMLChoiceObjectMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone.void
XMLInverseReferenceMapping. buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)
void
XMLAnyAttributeMapping. buildCloneFromRow(AbstractRecord Record, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
void
XMLAnyCollectionMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
void
XMLAnyObjectMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
void
XMLChoiceCollectionMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
void
XMLChoiceObjectMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
void
XMLInverseReferenceMapping. buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)
protected Object
XMLCompositeCollectionMapping. buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManger, AbstractSession targetSession)
protected Object
XMLCompositeObjectMapping. buildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession)
Object
XMLChoiceObjectMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
Object
XMLCollectionReferenceMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Extract the primary key values from the row, then create an org.eclipse.persistence.internal.oxm.Reference instance and stored it on the session's org.eclipse.persistence.internal.oxm.ReferenceResolver.Object
XMLCollectionReferenceMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected, Object container)
INTERNAL: Extract the primary key values from the row, then create an org.eclipse.persistence.internal.oxm.Reference instance and stored it on the session's org.eclipse.persistence.internal.oxm.ReferenceResolver.Object
XMLCompositeObjectMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
Object
XMLObjectReferenceMapping. readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected)
INTERNAL: Extract the primary key values from the row, then create an org.eclipse.persistence.internal.oxm.Reference instance and store it on the session's org.eclipse.persistence.internal.oxm.ReferenceResolver.Object
XMLAnyAttributeMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLAnyCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLAnyObjectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLBinaryDataCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLBinaryDataMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLChoiceCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLChoiceObjectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLCompositeCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLCompositeDirectCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Build the nested collection from the database row.Object
XMLCompositeObjectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Object
XMLDirectMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Return the mapping's attribute value from the row.Object
XMLFragmentCollectionMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
INTERNAL: Build the nested collection from the database row.Object
XMLFragmentMapping. valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
-
Uses of CacheKey in org.eclipse.persistence.queries
Fields in org.eclipse.persistence.queries with type parameters of type CacheKey Modifier and Type Field Description protected Map<Object,CacheKey>
ObjectBuildingQuery. prefetchedCacheKeys
Methods in org.eclipse.persistence.queries that return types with arguments of type CacheKey Modifier and Type Method Description Map<Object,CacheKey>
ObjectBuildingQuery. getPrefetchedCacheKeys()
Method parameters in org.eclipse.persistence.queries with type arguments of type CacheKey Modifier and Type Method Description void
ObjectBuildingQuery. setPrefetchedCacheKeys(Map<Object,CacheKey> prefetchedCacheKeys)
-
Uses of CacheKey in org.eclipse.persistence.sessions.interceptors
Subclasses of CacheKey in org.eclipse.persistence.sessions.interceptors Modifier and Type Class Description class
CacheKeyInterceptor
The CacheKeyInterceptor allows a Cache Interceptor implementation to wrap the EclipseLink CacheKey.Fields in org.eclipse.persistence.sessions.interceptors declared as CacheKey Modifier and Type Field Description protected CacheKey
CacheKeyInterceptor. wrappedKey
Methods in org.eclipse.persistence.sessions.interceptors that return CacheKey Modifier and Type Method Description CacheKey
CacheInterceptor. acquireDeferredLock(Object primaryKey, boolean isCacheCheckComplete)
Acquire a deferred lock on the object.CacheKey
CacheInterceptor. acquireLock(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete)
Acquire an active lock on the object.CacheKey
CacheInterceptor. acquireLockNoWait(Object primaryKey, boolean forMerge)
Acquire an active lock on the object, if not already locked.CacheKey
CacheInterceptor. acquireLockWithWait(Object primaryKey, boolean forMerge, int wait)
Acquire an active lock on the object, if not already locked.CacheKey
CacheInterceptor. acquireReadLockOnCacheKey(Object primaryKey)
Acquire a read lock on the object.CacheKey
CacheInterceptor. acquireReadLockOnCacheKeyNoWait(Object primaryKey)
Acquire a read lock on the object, if not already locked.CacheKey
CacheInterceptor. getCacheKey(Object primaryKey, boolean forMerge)
Get the cache key (with object) for the primary key.CacheKey
CacheInterceptor. getCacheKeyForLock(Object primaryKey)
Get the cache key (with object) for the primary key.CacheKey
CacheKeyInterceptor. getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.CacheKey
CacheInterceptor. put(Object primaryKey, Object object, Object writeLockValue, long readTime)
Store the object in the cache at its primary key.Methods in org.eclipse.persistence.sessions.interceptors that return types with arguments of type CacheKey Modifier and Type Method Description Enumeration<CacheKey>
CacheInterceptor. cloneKeys()
Allow for theCacheKey
elements to be iterated.abstract Map<Object,CacheKey>
CacheInterceptor. getAllCacheKeysFromIdentityMapWithEntityPK(Object[] pkList, ClassDescriptor descriptor, AbstractSession session)
ADVANCED: Using a list of Entity PK this method will attempt to bulk load the entire list from the cache.Enumeration<CacheKey>
CacheInterceptor. keys()
Allow for theCacheKey
elements to be iterated.Enumeration<CacheKey>
CacheInterceptor. keys(boolean checkReadLocks)
Allow for theCacheKey
elements to be iterated.Methods in org.eclipse.persistence.sessions.interceptors with parameters of type CacheKey Modifier and Type Method Description protected abstract CacheKeyInterceptor
CacheInterceptor. createCacheKeyInterceptor(CacheKey wrappedCacheKey)
boolean
CacheKeyInterceptor. equals(CacheKey key)
Object
CacheInterceptor. remove(CacheKey cacheKey)
Remove the CacheKey from the map.Constructors in org.eclipse.persistence.sessions.interceptors with parameters of type CacheKey Constructor Description CacheKeyInterceptor(CacheKey cacheKey)
-