public class CacheKeyInterceptor
extends org.eclipse.persistence.internal.identitymaps.CacheKey
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.persistence.internal.identitymaps.CacheKey |
wrappedKey |
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, invalidationState, isIsolated, isWrapper, key, lastUpdatedQueryId, mapOwner, MAX_WAIT_TRIES, object, protectedForeignKeys, readTime, record, transactionId, wrapper, writeLockValue
Constructor and Description |
---|
CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey) |
Modifier and Type | Method and Description |
---|---|
void |
acquire()
Acquire the lock on the cache key object.
|
void |
acquire(boolean forMerge)
Acquire the lock on the cache key object.
|
void |
acquireDeferredLock()
Acquire the deferred lock.
|
boolean |
acquireIfUnownedNoWait()
Acquire the lock on the cache key object.
|
boolean |
acquireNoWait()
Acquire the lock on the cache key object.
|
boolean |
acquireNoWait(boolean forMerge)
Acquire the lock on the cache key object.
|
void |
acquireReadLock()
Acquire the read lock on the cache key object.
|
boolean |
acquireReadLockNoWait()
Acquire the read lock on the cache key object.
|
void |
checkDeferredLock() |
void |
checkReadLock() |
java.lang.Object |
clone() |
boolean |
equals(org.eclipse.persistence.internal.identitymaps.CacheKey key) |
java.lang.Thread |
getActiveThread()
Return the active thread.
|
int |
getInvalidationState() |
java.lang.Object |
getKey() |
long |
getLastUpdatedQueryId() |
java.lang.Object |
getObject() |
org.eclipse.persistence.internal.identitymaps.IdentityMap |
getOwningMap() |
long |
getReadTime()
INTERNAL:
Return the current value of the Read Time variable
|
Record |
getRecord() |
org.eclipse.persistence.internal.identitymaps.CacheKey |
getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.
|
java.lang.Object |
getWrapper() |
java.lang.Object |
getWriteLockValue() |
int |
hashCode() |
boolean |
isAcquired() |
void |
release()
Release the lock on the cache key object.
|
void |
releaseDeferredLock()
Release the deferred lock
|
void |
releaseReadLock()
Release the read lock on the cache key object.
|
java.lang.Object |
removeFromOwningMap()
Removes this cacheKey from the owning map
|
void |
setInvalidationState(int invalidationState) |
void |
setKey(java.lang.Object key) |
void |
setLastUpdatedQueryId(long id) |
void |
setObject(java.lang.Object object) |
void |
setOwningMap(org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap map) |
void |
setReadTime(long readTime) |
void |
setRecord(Record newRecord) |
void |
setWrapper(java.lang.Object wrapper) |
void |
setWriteLockValue(java.lang.Object writeLockValue) |
java.lang.String |
toString() |
void |
updateAccess() |
acquireLock, acquireWithWait, equals, getProtectedForeignKeys, getTransactionId, hasProtectedForeignKeys, isIsolated, isWrapper, setIsolated, setIsWrapper, setOwningMap, setProtectedForeignKeys, setTransactionId, waitForObject
acquireIfUnownedNoWait, getDeferredLockManager, getDeferredLockManagers, getDepth, getNumberOfReaders, getNumberOfWritersWaiting, getStack, initializeDeferredLockManagers, isBuildObjectOnThreadComplete, isLockedByMergeManager, isNested, putDeferredLock, removeDeferredLockManager, setActiveThread, setDepth, setIsLockedByMergeManager, setNumberOfReaders, setNumberOfWritersWaiting, setShouldTrackStack, setStack, shouldTrackStack, transitionToDeferredLock
public CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey)
public void acquire()
acquire
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void acquire(boolean forMerge)
acquire
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean acquireNoWait()
acquireNoWait
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean acquireIfUnownedNoWait()
acquireIfUnownedNoWait
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean acquireNoWait(boolean forMerge)
acquireNoWait
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void acquireDeferredLock()
acquireDeferredLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void checkReadLock()
checkReadLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void checkDeferredLock()
checkDeferredLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void acquireReadLock()
acquireReadLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean acquireReadLockNoWait()
acquireReadLockNoWait
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Thread getActiveThread()
getActiveThread
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object clone()
clone
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean equals(org.eclipse.persistence.internal.identitymaps.CacheKey key)
equals
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public long getLastUpdatedQueryId()
getLastUpdatedQueryId
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object getKey()
getKey
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object getObject()
getObject
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public org.eclipse.persistence.internal.identitymaps.IdentityMap getOwningMap()
getOwningMap
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public long getReadTime()
getReadTime
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public Record getRecord()
getRecord
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public org.eclipse.persistence.internal.identitymaps.CacheKey getWrappedCacheKey()
getWrappedCacheKey
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object getWrapper()
getWrapper
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object getWriteLockValue()
getWriteLockValue
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public int hashCode()
hashCode
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public boolean isAcquired()
isAcquired
in class org.eclipse.persistence.internal.helper.ConcurrencyManager
public int getInvalidationState()
getInvalidationState
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void release()
release
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void releaseDeferredLock()
releaseDeferredLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void releaseReadLock()
releaseReadLock
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.Object removeFromOwningMap()
removeFromOwningMap
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setInvalidationState(int invalidationState)
setInvalidationState
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setLastUpdatedQueryId(long id)
setLastUpdatedQueryId
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setKey(java.lang.Object key)
setKey
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setObject(java.lang.Object object)
setObject
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setOwningMap(org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap map)
public void setReadTime(long readTime)
setReadTime
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setRecord(Record newRecord)
setRecord
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setWrapper(java.lang.Object wrapper)
setWrapper
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void setWriteLockValue(java.lang.Object writeLockValue)
setWriteLockValue
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public java.lang.String toString()
toString
in class org.eclipse.persistence.internal.identitymaps.CacheKey
public void updateAccess()
updateAccess
in class org.eclipse.persistence.internal.identitymaps.CacheKey