Top Description Fields Constructors Methods
org.hibernate.cache.entry

public final Class CacheEntry

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, .Interceptor, org.hibernate.engine.SessionImplementor, org.hibernate.event.EventSource, .PreLoadEvent, .PreLoadEventListener, org.hibernate.persister.entity.EntityPersister, org.hibernate.type.TypeHelper, org.hibernate.util.ArrayHelper

A cached instance of a persistent class
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final Serializable[]
private final boolean
private final String
private final Object

Constructor Summary

AccessConstructor and Description
public
CacheEntry(final Object[] state, final EntityPersister persister, final boolean unfetched, final Object version, final SessionImplementor session, final Object owner)

pack-priv
CacheEntry(Serializable[] state, String subclass, boolean unfetched, Object version)

Method Summary

Modifier and TypeMethod and Description
public boolean
public Object[]
assemble(final Object instance, final Serializable id, final EntityPersister persister, final Interceptor interceptor, final EventSource session)

private static Object[]
assemble(final Serializable[] values, final Object result, final Serializable id, final EntityPersister persister, final Interceptor interceptor, final EventSource session)

public Serializable[]
public String
public Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

disassembledStateback to summary
private final Serializable[] disassembledState
lazyPropertiesAreUnfetchedback to summary
private final boolean lazyPropertiesAreUnfetched
subclassback to summary
private final String subclass
versionback to summary
private final Object version

Constructor Detail

CacheEntryback to summary
public CacheEntry(final Object[] state, final EntityPersister persister, final boolean unfetched, final Object version, final SessionImplementor session, final Object owner) throws HibernateException
CacheEntryback to summary
pack-priv CacheEntry(Serializable[] state, String subclass, boolean unfetched, Object version)

Method Detail

areLazyPropertiesUnfetchedback to summary
public boolean areLazyPropertiesUnfetched()
assembleback to summary
public Object[] assemble(final Object instance, final Serializable id, final EntityPersister persister, final Interceptor interceptor, final EventSource session) throws HibernateException
assembleback to summary
private static Object[] assemble(final Serializable[] values, final Object result, final Serializable id, final EntityPersister persister, final Interceptor interceptor, final EventSource session) throws HibernateException
getDisassembledStateback to summary
public Serializable[] getDisassembledState()
getSubclassback to summary
public String getSubclass()
getVersionback to summary
public Object getVersion()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.