org.hibernate.cache.spi.entry
Interface CacheEntry

All Superinterfaces:
Serializable
All Known Implementing Classes:
ReferenceCacheEntryImpl, StandardCacheEntryImpl

public interface CacheEntry
extends Serializable

A cached instance of a persistent class


Method Summary
 boolean areLazyPropertiesUnfetched()
           
 Serializable[] getDisassembledState()
           
 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()
           
 

Method Detail

isReferenceEntry

boolean isReferenceEntry()

getSubclass

String getSubclass()
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.

Returns:
The entry's exact entity type.

getVersion

Object getVersion()
Retrieves the version (optimistic locking) associated with this cache entry.

Returns:
The version of the entity represented by this entry

areLazyPropertiesUnfetched

boolean areLazyPropertiesUnfetched()

getDisassembledState

Serializable[] getDisassembledState()


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.