|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.persistence.internal.identitymaps.CacheKey
org.eclipse.persistence.sessions.interceptors.CacheKeyInterceptor
public class CacheKeyInterceptor
The CacheKeyInterceptor allows a Cache Interceptor implementation to wrap the EclipseLink CacheKey. The CacheKey is an object that wraps the object and maintains cached based information about the object like primary key, write lock value and locking. The EclipseLink runtime will access the CacheKey and directly when releasing locks.
| Field Summary | |
|---|---|
protected org.eclipse.persistence.internal.identitymaps.CacheKey |
wrappedKey
|
| Fields inherited from class org.eclipse.persistence.internal.identitymaps.CacheKey |
|---|
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, hash, invalidationState, isWrapper, key, lastUpdatedQueryId, mapOwner, MAX_WAIT_TRIES, mutex, object, readTime, record, wrapper, writeLockValue |
| Constructor Summary | |
|---|---|
CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey)
|
|
| Method Summary | |
|---|---|
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)
|
int |
getInvalidationState()
|
java.util.Vector |
getKey()
|
long |
getLastUpdatedQueryId()
|
org.eclipse.persistence.internal.helper.ConcurrencyManager |
getMutex()
|
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.util.Vector key)
|
void |
setLastUpdatedQueryId(long id)
|
void |
setMutex(org.eclipse.persistence.internal.helper.ConcurrencyManager mutex)
|
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()
|
| Methods inherited from class org.eclipse.persistence.internal.identitymaps.CacheKey |
|---|
acquireWithWait, computeHash, equals, isWrapper, setIsWrapper, setOwningMap, transitionToDeferredLock, waitForObject |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.persistence.internal.identitymaps.CacheKey wrappedKey
| Constructor Detail |
|---|
public CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey)
| Method Detail |
|---|
public void acquire()
acquire in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquire(boolean forMerge)
acquire in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireNoWait()
acquireNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireIfUnownedNoWait()
acquireIfUnownedNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireNoWait(boolean forMerge)
acquireNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquireDeferredLock()
acquireDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void checkReadLock()
checkReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void checkDeferredLock()
checkDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquireReadLock()
acquireReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireReadLockNoWait()
acquireReadLockNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.Object clone()
clone in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean equals(org.eclipse.persistence.internal.identitymaps.CacheKey key)
equals in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic long getLastUpdatedQueryId()
getLastUpdatedQueryId in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.util.Vector getKey()
getKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic org.eclipse.persistence.internal.helper.ConcurrencyManager getMutex()
getMutex in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.Object getObject()
getObject in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic org.eclipse.persistence.internal.identitymaps.IdentityMap getOwningMap()
getOwningMap in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic long getReadTime()
getReadTime in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Record getRecord()
getRecord in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic org.eclipse.persistence.internal.identitymaps.CacheKey getWrappedCacheKey()
getWrappedCacheKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.Object getWrapper()
getWrapper in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.Object getWriteLockValue()
getWriteLockValue in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic int hashCode()
hashCode in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean isAcquired()
isAcquired in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic int getInvalidationState()
getInvalidationState in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void release()
release in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void releaseDeferredLock()
releaseDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void releaseReadLock()
releaseReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.Object removeFromOwningMap()
removeFromOwningMap in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setInvalidationState(int invalidationState)
setInvalidationState in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setLastUpdatedQueryId(long id)
setLastUpdatedQueryId in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setKey(java.util.Vector key)
setKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setMutex(org.eclipse.persistence.internal.helper.ConcurrencyManager mutex)
setMutex in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setObject(java.lang.Object object)
setObject in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setOwningMap(org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap map)
public void setReadTime(long readTime)
setReadTime in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setRecord(Record newRecord)
setRecord in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setWrapper(java.lang.Object wrapper)
setWrapper in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setWriteLockValue(java.lang.Object writeLockValue)
setWriteLockValue in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic java.lang.String toString()
toString in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void updateAccess()
updateAccess in class org.eclipse.persistence.internal.identitymaps.CacheKey
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||