org.hibernate.cache.spi.entry
Class StandardCacheEntryImpl
java.lang.Object
org.hibernate.cache.spi.entry.StandardCacheEntryImpl
- All Implemented Interfaces:
- Serializable, CacheEntry
public class StandardCacheEntryImpl
- extends Object
- implements CacheEntry
- See Also:
- Serialized Form
StandardCacheEntryImpl
public StandardCacheEntryImpl(Object[] state,
EntityPersister persister,
boolean unfetched,
Object version,
SessionImplementor session,
Object owner)
throws HibernateException
- Throws:
HibernateException
isReferenceEntry
public boolean isReferenceEntry()
- Specified by:
isReferenceEntry
in interface CacheEntry
getDisassembledState
public Serializable[] getDisassembledState()
- Specified by:
getDisassembledState
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.
areLazyPropertiesUnfetched
public boolean areLazyPropertiesUnfetched()
- Specified by:
areLazyPropertiesUnfetched
in interface CacheEntry
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
isDeepCopyNeeded
public boolean isDeepCopyNeeded()
assemble
public Object[] assemble(Object instance,
Serializable id,
EntityPersister persister,
Interceptor interceptor,
EventSource session)
throws HibernateException
- Throws:
HibernateException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.