| Modifier and Type | Field and Description |
|---|---|
| private final Serializable[] | |
| private final String | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | StandardCacheEntryImpl(final Object[]
The extracted state state, final EntityPersister The entity persister persister, final Object The current version (if versioned) version, final SharedSessionContractImplementor The originating session session, final Object The owner owner)Constructs a StandardCacheEntryImpl |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | Returns: The assembled stateThe entity instance instance, final Object The entity identifier id, final EntityPersister The entity persister persister, final Interceptor (currently unused) interceptor, final EventSource The session session)Assemble the previously disassembled state represented by this entry into the given entity instance. |
| public Serializable[] | getDisassembledState()
Implements org. |
| public String | getSubclass()
Implements org. |
| public Object | getVersion()
Implements org. |
| public boolean | |
| public boolean | isReferenceEntry()
Implements org. |
| public String |
| disassembledState | back to summary |
|---|---|
| private final Serializable[] disassembledState | |
| subclass | back to summary |
|---|---|
| private final String subclass | |
| version | back to summary |
|---|---|
| private final Object version | |
| StandardCacheEntryImpl | back to summary |
|---|---|
| public StandardCacheEntryImpl(final Object[] state, final EntityPersister persister, final Object version, final SharedSessionContractImplementor session, final Object owner) throws HibernateException Constructs a StandardCacheEntryImpl
| |
| StandardCacheEntryImpl | back to summary |
|---|---|
| pack-priv StandardCacheEntryImpl(Serializable[] disassembledState, String subclass, Object version) | |
| assemble | back to summary |
|---|---|
| public Object[] assemble(final Object instance, final Object id, final EntityPersister persister, final Interceptor interceptor, final EventSource session) throws HibernateException Assemble the previously disassembled state represented by this entry into the given entity instance. Additionally manages the PreLoadEvent callbacks.
| |
| getDisassembledState | back to summary |
|---|---|
| public Serializable[] getDisassembledState() Implements org. Doc from org. 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.
| |
| getSubclass | back to summary |
|---|---|
| public String getSubclass() Implements org. Doc from org. 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. | |
| getVersion | back to summary |
|---|---|
| public Object getVersion() Implements org. Doc from org. Retrieves the version (optimistic locking) associated with this cache entry. | |
| isDeepCopyNeeded | back to summary |
|---|---|
| public boolean isDeepCopyNeeded() After assembly, is a copy of the array needed?
| |
| isReferenceEntry | back to summary |
|---|---|
| public boolean isReferenceEntry() Implements org. Doc from org. Does this entry represent a direct entity reference (rather than disassembled state)?
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |