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

    Modifier and Type
    Method
    Description
    Get the underlying disassembled state todo : this was added to support initializing an entity's EntityEntry snapshot during reattach; this should be refactored to instead expose a method to assemble an EntityEntry based on this state for return.
    Hibernate stores all entries pertaining to a given entity hierarchy in a single region.
    Retrieves the version (optimistic locking) associated with this cache entry.
    boolean
    Does this entry represent a direct entity reference (rather than disassembled state)?
  • Method Details

    • isReferenceEntry

      boolean isReferenceEntry()
      Does this entry represent a direct entity reference (rather than disassembled state)?
      Returns:
      true/false
    • 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
    • getDisassembledState

      Serializable[] getDisassembledState()
      Get the underlying disassembled state todo : this was added to support initializing an entity's EntityEntry snapshot during reattach; this should be refactored to instead expose a method to assemble an EntityEntry based on this state for return.
      Returns:
      The disassembled state