org.hibernate.cache.spi.entry
Class ReferenceCacheEntryImpl
java.lang.Object
org.hibernate.cache.spi.entry.ReferenceCacheEntryImpl
- All Implemented Interfaces:
- Serializable, CacheEntry
public class ReferenceCacheEntryImpl
- extends Object
- implements CacheEntry
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceCacheEntryImpl
public ReferenceCacheEntryImpl(Object reference,
EntityPersister subclassPersister)
- Constructs a ReferenceCacheEntryImpl
- Parameters:
reference
- The reference entity instancesubclassPersister
- The specific subclass persister
isReferenceEntry
public boolean isReferenceEntry()
- Specified by:
isReferenceEntry
in interface CacheEntry
getSubclass
public String getSubclass()
- Description copied from interface:
CacheEntry
- Hibernate stores all entries pertaining to a given entity hierarchy in a single region. This attribute
tells us the specific entity type represented by the cached data.
- Specified by:
getSubclass
in interface CacheEntry
- Returns:
- The entry's exact entity type.
getSubclassPersister
public EntityPersister getSubclassPersister()
getVersion
public Object getVersion()
- Description copied from interface:
CacheEntry
- Retrieves the version (optimistic locking) associated with this cache entry.
- Specified by:
getVersion
in interface CacheEntry
- Returns:
- The version of the entity represented by this entry
areLazyPropertiesUnfetched
public boolean areLazyPropertiesUnfetched()
- Specified by:
areLazyPropertiesUnfetched
in interface CacheEntry
getDisassembledState
public Serializable[] getDisassembledState()
- Specified by:
getDisassembledState
in interface CacheEntry
getReference
public Object getReference()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.