类 ReferenceCacheEntryImpl

    • 构造器详细资料

      • ReferenceCacheEntryImpl

        public ReferenceCacheEntryImpl​(Object reference,
                                       EntityPersister subclassPersister)
        Constructs a ReferenceCacheEntryImpl
        参数:
        reference - The reference entity instance
        subclassPersister - The specific subclass persister
    • 方法详细资料

      • getReference

        public Object getReference()
        Provides access to the stored reference.
        返回:
        The stored reference
      • isReferenceEntry

        public boolean isReferenceEntry()
        从接口复制的说明: CacheEntry
        Does this entry represent a direct entity reference (rather than disassembled state)?
        指定者:
        isReferenceEntry 在接口中 CacheEntry
        返回:
        true/false
      • getSubclass

        public String getSubclass()
        从接口复制的说明: 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.
        指定者:
        getSubclass 在接口中 CacheEntry
        返回:
        The entry's exact entity type.
      • getVersion

        public Object getVersion()
        从接口复制的说明: CacheEntry
        Retrieves the version (optimistic locking) associated with this cache entry.
        指定者:
        getVersion 在接口中 CacheEntry
        返回:
        The version of the entity represented by this entry
      • getDisassembledState

        public Serializable[] getDisassembledState()
        从接口复制的说明: CacheEntry
        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.
        指定者:
        getDisassembledState 在接口中 CacheEntry
        返回:
        The disassembled state