org.hibernate.cache.spi.entry
Class ReferenceCacheEntryImpl

java.lang.Object
  extended by org.hibernate.cache.spi.entry.ReferenceCacheEntryImpl
All Implemented Interfaces:
Serializable, CacheEntry

public class ReferenceCacheEntryImpl
extends Object
implements CacheEntry

See Also:
Serialized Form

Constructor Summary
ReferenceCacheEntryImpl(Object reference, String subclass)
           
 
Method Summary
 boolean areLazyPropertiesUnfetched()
           
 Serializable[] getDisassembledState()
           
 Object getReference()
           
 String getSubclass()
          Hibernate stores all entries pertaining to a given entity hierarchy in a single region.
 Object getVersion()
          Retrieves the version (optimistic locking) associated with this cache entry.
 boolean isReferenceEntry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceCacheEntryImpl

public ReferenceCacheEntryImpl(Object reference,
                               String subclass)
Method Detail

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.

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-2013 Red Hat, Inc. All Rights Reserved.