Purpose: Provide the capability to not cache objects at all.
Responsibilities:
| Access | Constructor and Description |
|---|---|
| public |
| NoIdentityMap | back to summary |
|---|---|
| public NoIdentityMap(int size, ClassDescriptor descriptor, AbstractSession session, boolean isolated) | |
| cloneKeys | back to summary |
|---|---|
| public Enumeration Implements org. Return an empty enumerator.
| |
| collectLocks | back to summary |
|---|---|
| public void collectLocks(HashMap<K, V> threadList) Implements abstract org. Implements org. NoIdentityMap has no locks.
| |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract org. Implements org. Return an empty enumerator.
| |
| get | back to summary |
|---|---|
| public Object get(Object primaryKey) Overrides org. Implements org. Return null as no objects are cached.
| |
| getCacheKey | back to summary |
|---|---|
| public CacheKey getCacheKey(Object searchKey, boolean forMerge) Implements abstract org. Implements org. Return null as no objects are cached.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Implements abstract org. Implements org. Return 0 as no objects are cached.
| |
| getSize | back to summary |
|---|---|
| public int getSize(Class<?> myClass, boolean recurse) Implements abstract org. Implements org. Return 0 as no objects are cached.
| |
| getWriteLockValue | back to summary |
|---|---|
| public Object getWriteLockValue(Object primaryKey) Overrides org. Implements org. Return null as no objects are cached.
| |
| keys | back to summary |
|---|---|
| public Enumeration Implements abstract org. Implements org. Return an empty enumerator.
| |
| keys | back to summary |
|---|---|
| public Enumeration Implements org. Return an empty enumerator.
| |
| lazyRelationshipLoaded | back to summary |
|---|---|
| public void lazyRelationshipLoaded(Object object, ValueHolderInterface<T> valueHolder, ForeignReferenceMapping mapping) Implements org. Notify the cache that a lazy relationship has been triggered in the object and the cache may need to be updated
| |
| put | back to summary |
|---|---|
| public CacheKey put(Object primaryKey, Object object, Object writeLockValue, long readTime) Implements abstract org. Implements org. Do Nothing.
| |
| putCacheKeyIfAbsent | back to summary |
|---|---|
| protected CacheKey putCacheKeyIfAbsent(CacheKey cacheKey) Implements abstract org. Return null as no objects are cached.
| |
| remove | back to summary |
|---|---|
| public Object remove(Object primaryKey, Object object) Overrides org. Implements org. Do Nothing. Return null, since no objects are cached.
| |
| remove | back to summary |
|---|---|
| public Object remove(CacheKey searchKey) Implements abstract org. Implements org. Do Nothing. Return null, since no objects are cached.
| |
| setWriteLockValue | back to summary |
|---|---|
| public void setWriteLockValue(Object primaryKey, Object writeLockValue) Overrides org. Implements org. Do Nothing.
| |