Uses of Class
org.eclipse.persistence.internal.identitymaps.CacheKey
Package
Description
-
Uses of CacheKey in org.eclipse.persistence.descriptors
Modifier and TypeMethodDescriptionCachePolicy.checkCacheByIndex
(Expression expression, AbstractRecord translationRow, ClassDescriptor descriptor, AbstractSession session) INTERNAL: Lookup the expression in the cache if it contains any indexes.Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionabstract 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
Modifier and TypeMethodDescriptionprotected 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) 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.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
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionvoid
DynamicEntityImpl._persistence_setCacheKey
(CacheKey cacheKey) -
Uses of CacheKey in org.eclipse.persistence.internal.helper
Modifier and TypeMethodDescriptionWriteLockManager.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.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 methodWriteLockManager.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.Modifier and TypeMethodDescriptionWriteLockManager.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.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
Modifier and TypeClassDescriptionclass
Inner class to define the specialized weak cache key.class
Purpose: Provides the capability to insert CacheKeys into a Linked List.class
class
Purpose: Container class for storing objects in an IdentityMap.class
Purpose: Container class for storing objects in an IdentityMap.Modifier and TypeFieldDescriptionprotected CacheKey
AbstractIdentityMapEnumeration.nextKey
Next key to be returned.Modifier and TypeFieldDescriptionFullIdentityMap.cacheKeys
Map of CacheKeys stored using their key.AbstractIdentityMapEnumeration.cacheKeysIterator
CacheKey
instances iterator.Modifier and TypeMethodDescriptionAbstractIdentityMap.acquireDeferredLock
(Object primaryKey, boolean isCacheCheckComplete) Acquire a deferred lock on the object.IdentityMap.acquireDeferredLock
(Object primaryKey, boolean isCacheCheckComplete) Acquire a deferred lock on the object.IdentityMapManager.acquireDeferredLock
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor, boolean isCacheCheckComplete) Provides access for setting a deferred lock on an object in the IdentityMap.UnitOfWorkIdentityMap.acquireDeferredLock
(Object primaryKey, boolean isCacheCheckComplete) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.acquireLock
(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete) Acquire an active lock on the object.IdentityMap.acquireLock
(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete) Acquire an active lock on the object.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.UnitOfWorkIdentityMap.acquireLock
(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.acquireLockNoWait
(Object primaryKey, boolean forMerge) Acquire an active lock on the object, if not already locked.IdentityMap.acquireLockNoWait
(Object primaryKey, boolean forMerge) Acquire an active lock on the object, if not already locked.IdentityMapManager.acquireLockNoWait
(Object primaryKey, Class<?> domainClass, boolean forMerge, ClassDescriptor descriptor) Provides access for setting a concurrency lock on an object in the IdentityMap.UnitOfWorkIdentityMap.acquireLockNoWait
(Object primaryKey, boolean forMerge) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.acquireLockWithWait
(Object primaryKey, boolean forMerge, int wait) Acquire an active lock on the object, if not already locked.IdentityMap.acquireLockWithWait
(Object primaryKey, boolean forMerge, int wait) Acquire an active lock on the object, if not already locked.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.UnitOfWorkIdentityMap.acquireLockWithWait
(Object primaryKey, boolean forMerge, int wait) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.acquireReadLockOnCacheKey
(Object primaryKey) Acquire a read lock on the object.IdentityMap.acquireReadLockOnCacheKey
(Object primaryKey) Acquire a read lock on the object.IdentityMapManager.acquireReadLockOnCacheKey
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.UnitOfWorkIdentityMap.acquireReadLockOnCacheKey
(Object primaryKey) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.acquireReadLockOnCacheKeyNoWait
(Object primaryKey) Acquire a read lock on the object, if not already locked.IdentityMap.acquireReadLockOnCacheKeyNoWait
(Object primaryKey) Acquire a read lock on the object, if not already locked.IdentityMapManager.acquireReadLockOnCacheKeyNoWait
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.UnitOfWorkIdentityMap.acquireReadLockOnCacheKeyNoWait
(Object primaryKey) Avoid acquiring any lock as uow is single threaded.AbstractIdentityMap.createCacheKey
(Object primaryKey, Object object, Object writeLockValue, long readTime) Create the correct type of CacheKey for this map.CacheIdentityMap.createCacheKey
(Object primaryKey, Object object, Object writeLockValue, long readTime) 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.SoftIdentityMap.createCacheKey
(Object primaryKey, Object object, Object writeLockValue, long readTime) UnitOfWorkIdentityMap.createCacheKey
(Object primaryKey, Object object, Object writeLockValue, long readTime) WeakIdentityMap.createCacheKey
(Object primaryKey, Object object, Object writeLockValue, long readTime) 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.CacheIdentityMap.getCacheKey
(Object primaryKeys, boolean forMerge) Access the object within the table for the given primaryKey.FullIdentityMap.getCacheKey
(Object searchKey, boolean forMerge) Return the cache key matching the primary key of the searchKey.IdentityMap.getCacheKey
(Object primaryKey, boolean forMerge) Get the cache key (with object) for the primary key.NoIdentityMap.getCacheKey
(Object searchKey, boolean forMerge) Return null as no objects are cached.IdentityMapManager.getCacheKeyByIndex
(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor) Return the cache key for the cache index or null if not found.AbstractIdentityMap.getCacheKeyForLock
(Object primaryKey) Get the cache key (with object) for the primary key.IdentityMap.getCacheKeyForLock
(Object primaryKey) Get the cache key (with object) for the primary key in order to acquire a lock.IdentityMapManager.getCacheKeyForObject
(Object primaryKey, Class<?> theClass, ClassDescriptor descriptor, boolean forMerge) Retrieve the cache key for the given identity information.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.getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.IdentityMapKeyEnumeration.nextElement()
Get next element ofCacheKey
enumeration if this enumeration object has at least one more element to provide.abstract CacheKey
Store the object in the cache at its primary key.Store the object in the cache at its primary key.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.Store the object in the cache at its primary key.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.IdentityMapManager.putInIdentityMap
(Object domainObject, Object keys, Object writeLockValue, long readTime, ClassDescriptor descriptor) Register the object with the identity map.Modifier and TypeMethodDescriptionFullIdentityMap.cloneKeys()
Allow for theCacheKey
elements to be iterated.IdentityMap.cloneKeys()
Allow for the CacheKeys to be iterated on using copy of keys enumeration.NoIdentityMap.cloneKeys()
Return an empty enumerator.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.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.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.FullIdentityMap.getCacheKeys()
Return the cache keys.FullIdentityMap.keys()
Allow for the cache keys to be iterated on.FullIdentityMap.keys
(boolean checkReadLocks) Allow for theCacheKey
elements to be iterated.IdentityMap.keys()
Allow for the CacheKeys to be iterated on.IdentityMap.keys
(boolean checkReadLocks) Allow for the CacheKeys to be iterated on.NoIdentityMap.keys()
Return an empty enumerator.NoIdentityMap.keys
(boolean checkReadLocks) Return an empty enumerator.Modifier and TypeMethodDescriptionboolean
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
Remove the CacheKey from the map.Remove the LinkedCacheKey from the cache as well as from the linked list.Removes the CacheKey from the map.Remove the cache key from the map and the sub-cache list.Remove the CacheKey from the map.Do Nothing.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.Modifier and TypeMethodDescriptionprotected void
FullIdentityMap.setCacheKeys
(Map<Object, CacheKey> cacheKeys) ModifierConstructorDescriptionprotected
AbstractIdentityMapEnumeration
(Collection<CacheKey> keys, boolean shouldCheckReadLocks) Creates an instance ofCacheKey
content enumeration.Creates an instance ofCacheKey
instances enumeration.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
Modifier and TypeMethodDescriptionBasicIndirectionPolicy.cloneAttribute
(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow) INTERNAL: Return a clone of the attribute.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.NoIndirectionPolicy.cloneAttribute
(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow) INTERNAL: Return a clone of the attribute.ProxyIndirectionPolicy.cloneAttribute
(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow) INTERNAL: Return a clone of the attribute.TransparentIndirectionPolicy.cloneAttribute
(Object attributeValue, Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession, boolean buildDirectlyFromRow) Return a clone of the attribute.BasicIndirectionPolicy.valueFromBatchQuery
(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey) INTERNAL: Return the value to be stored in the object's attribute.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.NoIndirectionPolicy.valueFromBatchQuery
(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey) INTERNAL: Return the value to be stored in the object's attribute.ProxyIndirectionPolicy.valueFromBatchQuery
(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey) INTERNAL: Return the value to be stored in the object's attribute.TransparentIndirectionPolicy.valueFromBatchQuery
(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey) INTERNAL: Return the value to be stored in the object's attribute.ModifierConstructorDescriptionBatchValueHolder
(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
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionboolean
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.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.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.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 keysMappedKeyMapContainerPolicy.buildKey
(AbstractRecord row, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected) Extract the key for the map from the provided row.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 keysMappedKeyMapContainerPolicy.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
Modifier and TypeFieldDescriptionprotected CacheKey
ObjectChangeSet.activeCacheKey
PERF: Cache the session cacheKey during the merge to avoid duplicate lookups.Modifier and TypeFieldDescriptionMergeManager.acquiredLocks
Used to store the list of locks that this merge manager has acquired for this mergeModifier and TypeMethodDescriptionIdentityMapAccessor.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.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 lockIdentityMapAccessor.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.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.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.IdentityMapAccessor.acquireLockNoWait
(Object primaryKey, Class<?> domainClass, boolean forMerge, ClassDescriptor descriptor) INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.IsolatedClientSessionIdentityMapAccessor.acquireLockNoWait
(Object primaryKey, Class<?> domainClass, boolean forMerge, ClassDescriptor descriptor) INTERNAL: Provides access for setting a concurrency lock on an object in the IdentityMap.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.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.IdentityMapAccessor.acquireReadLockOnCacheKey
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.IsolatedClientSessionIdentityMapAccessor.acquireReadLockOnCacheKey
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.IdentityMapAccessor.acquireReadLockOnCacheKeyNoWait
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.IsolatedClientSessionIdentityMapAccessor.acquireReadLockOnCacheKeyNoWait
(Object primaryKey, Class<?> domainClass, ClassDescriptor descriptor) INTERNAL: Find the cachekey for the provided primary key and place a readlock on it.ObjectChangeSet.getActiveCacheKey()
INTERNAL: PERF: Return the session cache-key, cached during the merge.IdentityMapAccessor.getCacheKeyByIndex
(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor) Return the cache key for the cache index or null if not found.IsolatedClientSessionIdentityMapAccessor.getCacheKeyByIndex
(CacheIndex index, CacheId indexValues, boolean shouldCheckExpiry, ClassDescriptor descriptor) Return the cache key for the cache index or null if not found.IdentityMapAccessor.getCacheKeyForObject
(Object object) INTERNAL: Retrieve the cache key for the given object.IdentityMapAccessor.getCacheKeyForObject
(Object primaryKey, Class<?> myClass, ClassDescriptor descriptor, boolean forMerge) INTERNAL: Retrieve the cache key for the given identity information.IdentityMapAccessor.getCacheKeyForObject
(Object object, ClassDescriptor descriptor) INTERNAL: Retrieve the cache key for the given object from the identity maps.IsolatedClientSessionIdentityMapAccessor.getCacheKeyForObject
(Object primaryKey, Class<?> myClass, ClassDescriptor descriptor, boolean forMerge) INTERNAL: Retrieve the cache key for the given identity information.IdentityMapAccessor.getCacheKeyForObjectForLock
(Object primaryKey, Class<?> myClass, ClassDescriptor descriptor) INTERNAL: Retrieve the cache key for the given identity information.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.IdentityMapAccessor.internalPutInIdentityMap
(Object object, Object key, Object writeLockValue, long readTime, ClassDescriptor descriptor) INTERNAL: Register the object with the cache.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.AbstractSession.retrieveCacheKey
(Object primaryKey, ClassDescriptor concreteDescriptor, JoinedAttributeManager joinManager, ObjectBuildingQuery query) Modifier and TypeMethodDescriptionMergeManager.getAcquiredLocks()
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.Modifier and TypeMethodDescriptionvoid
AbstractSession.checkAndRefreshInvalidObject
(Object object, CacheKey cacheKey, ClassDescriptor descriptor) INTERNAL: Check if the object is invalid and refresh it.UnitOfWorkImpl.cloneAndRegisterObject
(Object original, CacheKey parentCacheKey, ClassDescriptor descriptor) INTERNAL: Clone and register the 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
Modifier and TypeMethodDescriptionprotected 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.Modifier and TypeMethodDescriptionprotected 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.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.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.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.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.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.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.AggregateCollectionMapping.buildElementClone
(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache) INTERNAL: Clone the aggregate collection, if necessary.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 unitOfWorkCollectionMapping.buildElementClone
(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache) INTERNAL: Clone the element, if necessary.DirectCollectionMapping.buildElementClone
(Object element, Object parent, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache) INTERNAL: Clone the element, if necessary.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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
Modifier and TypeMethodDescriptionvoid
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.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) 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.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 unitOfWorkAbstractDirectMapping.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.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.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.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.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.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.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.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.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.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.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
Modifier and TypeMethodDescriptionprotected 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) 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
Modifier and TypeMethodDescriptionvoid
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) XMLChoiceObjectMapping.readFromRowIntoObject
(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) 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.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.XMLCompositeObjectMapping.readFromRowIntoObject
(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) 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.XMLAnyAttributeMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLAnyCollectionMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLAnyObjectMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLBinaryDataCollectionMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLBinaryDataMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLChoiceCollectionMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLChoiceObjectMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) XMLCompositeCollectionMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) 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.XMLCompositeObjectMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) 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.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.XMLFragmentMapping.valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) -
Uses of CacheKey in org.eclipse.persistence.queries
Modifier and TypeMethodDescriptionvoid
ObjectBuildingQuery.setPrefetchedCacheKeys
(Map<Object, CacheKey> prefetchedCacheKeys) -
Uses of CacheKey in org.eclipse.persistence.sessions.interceptors
Modifier and TypeClassDescriptionclass
The CacheKeyInterceptor allows a Cache Interceptor implementation to wrap the EclipseLink CacheKey.Modifier and TypeMethodDescriptionCacheInterceptor.acquireDeferredLock
(Object primaryKey, boolean isCacheCheckComplete) Acquire a deferred lock on the object.CacheInterceptor.acquireLock
(Object primaryKey, boolean forMerge, boolean isCacheCheckComplete) Acquire an active lock on the object.CacheInterceptor.acquireLockNoWait
(Object primaryKey, boolean forMerge) Acquire an active lock on the object, if not already locked.CacheInterceptor.acquireLockWithWait
(Object primaryKey, boolean forMerge, int wait) Acquire an active lock on the object, if not already locked.CacheInterceptor.acquireReadLockOnCacheKey
(Object primaryKey) Acquire a read lock on the object.CacheInterceptor.acquireReadLockOnCacheKeyNoWait
(Object primaryKey) Acquire a read lock on the object, if not already locked.CacheInterceptor.getCacheKey
(Object primaryKey, boolean forMerge) Get the cache key (with object) for the primary key.CacheInterceptor.getCacheKeyForLock
(Object primaryKey) Get the cache key (with object) for the primary key.CacheKeyInterceptor.getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.Store the object in the cache at its primary key.Modifier and TypeMethodDescriptionCacheInterceptor.cloneKeys()
Allow for theCacheKey
elements to be iterated.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.CacheInterceptor.keys()
Allow for theCacheKey
elements to be iterated.CacheInterceptor.keys
(boolean checkReadLocks) Allow for theCacheKey
elements to be iterated.Modifier and TypeMethodDescriptionprotected abstract CacheKeyInterceptor
CacheInterceptor.createCacheKeyInterceptor
(CacheKey wrappedCacheKey) boolean
Remove the CacheKey from the map.