Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.persister.entity
Interface EntityPersister  view EntityPersister download EntityPersister.java

All Superinterfaces:
org.hibernate.cache.OptimisticCacheSource
All Known Subinterfaces:
Loadable, Lockable, OuterJoinLoadable, Queryable, SQLLoadable, UniqueKeyLoadable
All Known Implementing Classes:
AbstractEntityPersister, BasicEntityPersister

public interface EntityPersister
extends org.hibernate.cache.OptimisticCacheSource

Concrete EntityPersisters implement mapping and persistence logic for a particular persistent class.

Implementors must be threadsafe (preferrably immutable) and must provide a constructor of type (org.hibernate.map.PersistentClass, org.hibernate.impl.SessionFactoryImplementor).


Field Summary
static java.lang.String ENTITY_ID
          The property name of the "special" identifier property in HQL
 
Method Summary
 void afterInitialize(java.lang.Object entity, boolean lazyPropertiesAreUnfetched, org.hibernate.engine.SessionImplementor session)
          Called just after the entities properties have been initialized
 void afterReassociate(java.lang.Object entity, org.hibernate.engine.SessionImplementor session)
          Called just after the entity has been reassociated with the session
 boolean canExtractIdOutOfEntity()
          Do detached instances of this class carry their own identifier value?
 java.lang.Object createProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Create a new proxy instance
 void delete(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Delete a persistent instance
 int[] findDirty(java.lang.Object[] x, java.lang.Object[] y, java.lang.Object owner, org.hibernate.engine.SessionImplementor session)
          Compare two snapshots of the state of an instance to determine if the persistent state was modified
 int[] findModified(java.lang.Object[] old, java.lang.Object[] current, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Compare the state of an instance to the current database state
 java.lang.Object forceVersionIncrement(java.io.Serializable id, java.lang.Object currentVersion, org.hibernate.engine.SessionImplementor session)
           
 org.hibernate.cache.CacheConcurrencyStrategy getCache()
          Get the cache (optional operation)
 org.hibernate.cache.entry.CacheEntryStructure getCacheEntryStructure()
          Get the cache structure
 org.hibernate.metadata.ClassMetadata getClassMetadata()
          Get the user-visible metadata for the class (optional operation)
 java.lang.Class getConcreteProxyClass(org.hibernate.EntityMode entityMode)
          Get the proxy interface that instances of this concrete class will be cast to (optional operation).
 java.lang.Object getCurrentVersion(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Get the current version of the object, or return null if there is no row for the given identifier.
 java.lang.Object[] getDatabaseSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Get the current database state of the object, in a "hydrated" form, without resolving identifiers
 java.lang.String getEntityName()
          The classname of the persistent class (used only for messages)
 org.hibernate.engine.SessionFactoryImplementor getFactory()
          Return the SessionFactory to which this persister "belongs".
 java.io.Serializable getIdentifier(java.lang.Object object, org.hibernate.EntityMode entityMode)
          Get the identifier of an instance (throw an exception if no identifier property)
 org.hibernate.id.IdentifierGenerator getIdentifierGenerator()
          Return the IdentifierGenerator for the class
 java.lang.String getIdentifierPropertyName()
          Get the name of the identifier property (or return null) - need not return the name of an actual Java property
 org.hibernate.type.Type getIdentifierType()
          Get the identifier type
 java.lang.Class getMappedClass(org.hibernate.EntityMode entityMode)
          The persistent class, or null
 int[] getNaturalIdentifierProperties()
          Which properties hold the natural id?
 java.lang.Object[] getNaturalIdentifierSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Retrieve the current state of the natural-id properties from the database.
 org.hibernate.engine.CascadeStyle[] getPropertyCascadeStyles()
          Get the cascade styles of the propertes (optional operation)
 boolean[] getPropertyCheckability()
          Get the "checkability" of the properties of this class (is the property dirty checked, does the cache need to be updated)
 boolean[] getPropertyInsertability()
          Get the "insertability" of the properties of this class (does the property appear in an SQL INSERT)
 boolean[] getPropertyInsertGeneration()
          Which of the properties of this class are database generated values on insert?
 boolean[] getPropertyLaziness()
           
 java.lang.String[] getPropertyNames()
          Get the names of the class properties - doesn't have to be the names of the actual Java properties (used for XML generation only)
 boolean[] getPropertyNullability()
          Get the nullability of the properties of this class
 java.io.Serializable[] getPropertySpaces()
          Returns an array of objects that identify spaces in which properties of this class are persisted, for instances of this class only.
 org.hibernate.type.Type getPropertyType(java.lang.String propertyName)
          Get the type of a particular property
 org.hibernate.type.Type[] getPropertyTypes()
          Get the Hibernate types of the class properties
 boolean[] getPropertyUpdateability()
          Get the "updateability" of the properties of this class (does the property appear in an SQL UPDATE)
 boolean[] getPropertyUpdateGeneration()
          Which of the properties of this class are database generated values on update?
 java.lang.Object getPropertyValue(java.lang.Object object, int i, org.hibernate.EntityMode entityMode)
          Get the value of a particular property
 java.lang.Object getPropertyValue(java.lang.Object object, java.lang.String propertyName, org.hibernate.EntityMode entityMode)
          Get the value of a particular property
 java.lang.Object[] getPropertyValues(java.lang.Object object, org.hibernate.EntityMode entityMode)
          Return the (loaded) values of the mapped properties of the object (not including backrefs)
 java.lang.Object[] getPropertyValuesToInsert(java.lang.Object object, java.util.Map mergeMap, org.hibernate.engine.SessionImplementor session)
          Return the values of the insertable properties of the object (including backrefs)
 boolean[] getPropertyVersionability()
          Get the "versionability" of the properties of this class (is the property optimistic-locked)
 java.io.Serializable[] getQuerySpaces()
          Returns an array of objects that identify spaces in which properties of this class are persisted, for instances of this class and its subclasses.
 java.lang.String getRootEntityName()
          Returns an object that identifies the space in which identifiers of this class hierarchy are unique.
 EntityPersister getSubclassEntityPersister(java.lang.Object instance, org.hibernate.engine.SessionFactoryImplementor factory, org.hibernate.EntityMode entityMode)
          Get the persister for an instance of this class or a subclass
 java.lang.Object getVersion(java.lang.Object object, org.hibernate.EntityMode entityMode)
          Get the version number (or timestamp) from the object's version property (or return null if not versioned)
 int getVersionProperty()
          Which property holds the version number (optional operation).
 org.hibernate.type.VersionType getVersionType()
          Get the type of versioning (optional operation)
 org.hibernate.EntityMode guessEntityMode(java.lang.Object object)
          Try to discover the entity mode from the entity instance
 boolean hasCache()
          Does this class have a cache.
 boolean hasCascades()
          Does this class declare any cascading save/update/deletes.
 boolean hasCollections()
          Do instances of this class contain collections.
 boolean hasIdentifierProperty()
          Does the class have a property holding the identifier value?
 boolean hasInsertGeneratedProperties()
          Does this entity define any properties as being database generated on insert?
 boolean hasLazyProperties()
          Does this entity define some lazy attributes?
 boolean hasMutableProperties()
          Does this entity declare any properties of mutable type?
 boolean hasNaturalIdentifier()
          Does this entity declare a natural id?
 boolean hasProxy()
          Does this class support dynamic proxies.
 boolean hasSubselectLoadableCollections()
          Does this entity own any collections which are fetchable by subselect?
 boolean hasUninitializedLazyProperties(java.lang.Object object, org.hibernate.EntityMode entityMode)
          Does the given instance have any uninitialized lazy properties?
 boolean hasUpdateGeneratedProperties()
          Does this entity define any properties as being database generated on update?
 boolean implementsLifecycle(org.hibernate.EntityMode entityMode)
          Does the class implement the Lifecycle interface.
 boolean implementsValidatable(org.hibernate.EntityMode entityMode)
          Does the class implement the Validatable interface.
 java.io.Serializable insert(java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Persist an instance, using a natively generated identifier (optional operation)
 void insert(java.io.Serializable id, java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Persist an instance
 java.lang.Object instantiate(java.io.Serializable id, org.hibernate.EntityMode entityMode)
          Create a class instance initialized with the given identifier
 boolean isBatchLoadable()
          Is batch loading enabled?
 boolean isCacheInvalidationRequired()
          Should we always invalidate the cache instead of recaching updated state
 boolean isIdentifierAssignedByInsert()
          Is the identifier assigned before the insert by an IDGenerator.
 boolean isInherited()
          Is this class mapped as a subclass of another class?
 boolean isInstance(java.lang.Object object, org.hibernate.EntityMode entityMode)
          Is the given object an instance of this entity?
 boolean isInstrumented(org.hibernate.EntityMode entityMode)
          Has the class actually been bytecode instrumented?
 boolean isLazyPropertiesCacheable()
          Should lazy properties of this entity be cached?
 boolean isMutable()
          Are instances of this class mutable.
 boolean isSelectBeforeUpdateRequired()
          Is select snapshot before update enabled?
 boolean isSubclassEntityName(java.lang.String entityName)
          Is the given entity name the name of a subclass, or this class?
 java.lang.Boolean isTransient(java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Is this a new transient instance?
 boolean isVersioned()
          Are instances of this class versioned by a timestamp or version number column.
 boolean isVersionPropertyGenerated()
          Does this entity contain a version property that is defined to be database generated?
 java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
          Load an instance of the persistent class.
 void lock(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
          Do a version check (optional operation)
 void postInstantiate()
          Finish the initialization of this object, once all ClassPersisters have been instantiated.
 void processInsertGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
          Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the org.hibernate.engine.PersistenceContext.
 void processUpdateGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
          Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the org.hibernate.engine.PersistenceContext.
 void resetIdentifier(java.lang.Object entity, java.io.Serializable currentId, java.lang.Object currentVersion, org.hibernate.EntityMode entityMode)
          Set the identifier and version of the given instance back to its "unsaved" value, returning the id
 void setIdentifier(java.lang.Object object, java.io.Serializable id, org.hibernate.EntityMode entityMode)
          Set the identifier of an instance (or do nothing if no identifier property)
 void setPropertyValue(java.lang.Object object, int i, java.lang.Object value, org.hibernate.EntityMode entityMode)
          Set the value of a particular property
 void setPropertyValues(java.lang.Object object, java.lang.Object[] values, org.hibernate.EntityMode entityMode)
          Set the given values to the mapped properties of the given object
 void update(java.io.Serializable id, java.lang.Object[] fields, int[] dirtyFields, boolean hasDirtyCollection, java.lang.Object[] oldFields, java.lang.Object oldVersion, java.lang.Object object, java.lang.Object rowId, org.hibernate.engine.SessionImplementor session)
          Update a persistent instance
 
Methods inherited from interface org.hibernate.cache.OptimisticCacheSource
getVersionComparator
 

Field Detail

ENTITY_ID

public static final java.lang.String ENTITY_ID
The property name of the "special" identifier property in HQL

See Also:
Constant Field Values
Method Detail

postInstantiate

public void postInstantiate()
                     throws org.hibernate.MappingException
Finish the initialization of this object, once all ClassPersisters have been instantiated. Called only once, before any other method.


getFactory

public org.hibernate.engine.SessionFactoryImplementor getFactory()
Return the SessionFactory to which this persister "belongs".


getRootEntityName

public java.lang.String getRootEntityName()
Returns an object that identifies the space in which identifiers of this class hierarchy are unique. A table name, a JNDI URL, etc.


getEntityName

public java.lang.String getEntityName()
The classname of the persistent class (used only for messages)


isSubclassEntityName

public boolean isSubclassEntityName(java.lang.String entityName)
Is the given entity name the name of a subclass, or this class?


getPropertySpaces

public java.io.Serializable[] getPropertySpaces()
Returns an array of objects that identify spaces in which properties of this class are persisted, for instances of this class only.


getQuerySpaces

public java.io.Serializable[] getQuerySpaces()
Returns an array of objects that identify spaces in which properties of this class are persisted, for instances of this class and its subclasses.


hasProxy

public boolean hasProxy()
Does this class support dynamic proxies.


hasCollections

public boolean hasCollections()
Do instances of this class contain collections.


hasMutableProperties

public boolean hasMutableProperties()
Does this entity declare any properties of mutable type?


hasSubselectLoadableCollections

public boolean hasSubselectLoadableCollections()
Does this entity own any collections which are fetchable by subselect?


hasCascades

public boolean hasCascades()
Does this class declare any cascading save/update/deletes.


isMutable

public boolean isMutable()
Are instances of this class mutable.


isInherited

public boolean isInherited()
Is this class mapped as a subclass of another class?


isIdentifierAssignedByInsert

public boolean isIdentifierAssignedByInsert()
Is the identifier assigned before the insert by an IDGenerator. Or is it returned by the insert() method? This determines which form of insert() will be called.


getPropertyType

public org.hibernate.type.Type getPropertyType(java.lang.String propertyName)
                                        throws org.hibernate.MappingException
Get the type of a particular property


findDirty

public int[] findDirty(java.lang.Object[] x,
                       java.lang.Object[] y,
                       java.lang.Object owner,
                       org.hibernate.engine.SessionImplementor session)
                throws org.hibernate.HibernateException
Compare two snapshots of the state of an instance to determine if the persistent state was modified


findModified

public int[] findModified(java.lang.Object[] old,
                          java.lang.Object[] current,
                          java.lang.Object object,
                          org.hibernate.engine.SessionImplementor session)
                   throws org.hibernate.HibernateException
Compare the state of an instance to the current database state


hasIdentifierProperty

public boolean hasIdentifierProperty()
Does the class have a property holding the identifier value?


canExtractIdOutOfEntity

public boolean canExtractIdOutOfEntity()
Do detached instances of this class carry their own identifier value?


isVersioned

public boolean isVersioned()
Are instances of this class versioned by a timestamp or version number column.

Specified by:
isVersioned in interface org.hibernate.cache.OptimisticCacheSource

getVersionType

public org.hibernate.type.VersionType getVersionType()
Get the type of versioning (optional operation)


getVersionProperty

public int getVersionProperty()
Which property holds the version number (optional operation).


hasNaturalIdentifier

public boolean hasNaturalIdentifier()
Does this entity declare a natural id?


getNaturalIdentifierProperties

public int[] getNaturalIdentifierProperties()
Which properties hold the natural id?


getNaturalIdentifierSnapshot

public java.lang.Object[] getNaturalIdentifierSnapshot(java.io.Serializable id,
                                                       org.hibernate.engine.SessionImplementor session)
                                                throws org.hibernate.HibernateException
Retrieve the current state of the natural-id properties from the database.


getIdentifierGenerator

public org.hibernate.id.IdentifierGenerator getIdentifierGenerator()
                                                            throws org.hibernate.HibernateException
Return the IdentifierGenerator for the class


hasLazyProperties

public boolean hasLazyProperties()
Does this entity define some lazy attributes?


load

public java.lang.Object load(java.io.Serializable id,
                             java.lang.Object optionalObject,
                             org.hibernate.LockMode lockMode,
                             org.hibernate.engine.SessionImplementor session)
                      throws org.hibernate.HibernateException
Load an instance of the persistent class.


lock

public void lock(java.io.Serializable id,
                 java.lang.Object version,
                 java.lang.Object object,
                 org.hibernate.LockMode lockMode,
                 org.hibernate.engine.SessionImplementor session)
          throws org.hibernate.HibernateException
Do a version check (optional operation)


insert

public void insert(java.io.Serializable id,
                   java.lang.Object[] fields,
                   java.lang.Object object,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Persist an instance


insert

public java.io.Serializable insert(java.lang.Object[] fields,
                                   java.lang.Object object,
                                   org.hibernate.engine.SessionImplementor session)
                            throws org.hibernate.HibernateException
Persist an instance, using a natively generated identifier (optional operation)


delete

public void delete(java.io.Serializable id,
                   java.lang.Object version,
                   java.lang.Object object,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Delete a persistent instance


update

public void update(java.io.Serializable id,
                   java.lang.Object[] fields,
                   int[] dirtyFields,
                   boolean hasDirtyCollection,
                   java.lang.Object[] oldFields,
                   java.lang.Object oldVersion,
                   java.lang.Object object,
                   java.lang.Object rowId,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Update a persistent instance


getPropertyTypes

public org.hibernate.type.Type[] getPropertyTypes()
Get the Hibernate types of the class properties


getPropertyNames

public java.lang.String[] getPropertyNames()
Get the names of the class properties - doesn't have to be the names of the actual Java properties (used for XML generation only)


getPropertyInsertability

public boolean[] getPropertyInsertability()
Get the "insertability" of the properties of this class (does the property appear in an SQL INSERT)


getPropertyInsertGeneration

public boolean[] getPropertyInsertGeneration()
Which of the properties of this class are database generated values on insert?


getPropertyUpdateGeneration

public boolean[] getPropertyUpdateGeneration()
Which of the properties of this class are database generated values on update?


getPropertyUpdateability

public boolean[] getPropertyUpdateability()
Get the "updateability" of the properties of this class (does the property appear in an SQL UPDATE)


getPropertyCheckability

public boolean[] getPropertyCheckability()
Get the "checkability" of the properties of this class (is the property dirty checked, does the cache need to be updated)


getPropertyNullability

public boolean[] getPropertyNullability()
Get the nullability of the properties of this class


getPropertyVersionability

public boolean[] getPropertyVersionability()
Get the "versionability" of the properties of this class (is the property optimistic-locked)


getPropertyLaziness

public boolean[] getPropertyLaziness()

getPropertyCascadeStyles

public org.hibernate.engine.CascadeStyle[] getPropertyCascadeStyles()
Get the cascade styles of the propertes (optional operation)


getIdentifierType

public org.hibernate.type.Type getIdentifierType()
Get the identifier type


getIdentifierPropertyName

public java.lang.String getIdentifierPropertyName()
Get the name of the identifier property (or return null) - need not return the name of an actual Java property


isCacheInvalidationRequired

public boolean isCacheInvalidationRequired()
Should we always invalidate the cache instead of recaching updated state


isLazyPropertiesCacheable

public boolean isLazyPropertiesCacheable()
Should lazy properties of this entity be cached?


hasCache

public boolean hasCache()
Does this class have a cache.


getCache

public org.hibernate.cache.CacheConcurrencyStrategy getCache()
Get the cache (optional operation)


getCacheEntryStructure

public org.hibernate.cache.entry.CacheEntryStructure getCacheEntryStructure()
Get the cache structure


getClassMetadata

public org.hibernate.metadata.ClassMetadata getClassMetadata()
Get the user-visible metadata for the class (optional operation)


isBatchLoadable

public boolean isBatchLoadable()
Is batch loading enabled?


isSelectBeforeUpdateRequired

public boolean isSelectBeforeUpdateRequired()
Is select snapshot before update enabled?


getDatabaseSnapshot

public java.lang.Object[] getDatabaseSnapshot(java.io.Serializable id,
                                              org.hibernate.engine.SessionImplementor session)
                                       throws org.hibernate.HibernateException
Get the current database state of the object, in a "hydrated" form, without resolving identifiers


getCurrentVersion

public java.lang.Object getCurrentVersion(java.io.Serializable id,
                                          org.hibernate.engine.SessionImplementor session)
                                   throws org.hibernate.HibernateException
Get the current version of the object, or return null if there is no row for the given identifier. In the case of unversioned data, return any object if the row exists.


forceVersionIncrement

public java.lang.Object forceVersionIncrement(java.io.Serializable id,
                                              java.lang.Object currentVersion,
                                              org.hibernate.engine.SessionImplementor session)
                                       throws org.hibernate.HibernateException

guessEntityMode

public org.hibernate.EntityMode guessEntityMode(java.lang.Object object)
Try to discover the entity mode from the entity instance


isInstrumented

public boolean isInstrumented(org.hibernate.EntityMode entityMode)
Has the class actually been bytecode instrumented?


hasInsertGeneratedProperties

public boolean hasInsertGeneratedProperties()
Does this entity define any properties as being database generated on insert?


hasUpdateGeneratedProperties

public boolean hasUpdateGeneratedProperties()
Does this entity define any properties as being database generated on update?


isVersionPropertyGenerated

public boolean isVersionPropertyGenerated()
Does this entity contain a version property that is defined to be database generated?


afterInitialize

public void afterInitialize(java.lang.Object entity,
                            boolean lazyPropertiesAreUnfetched,
                            org.hibernate.engine.SessionImplementor session)
Called just after the entities properties have been initialized


afterReassociate

public void afterReassociate(java.lang.Object entity,
                             org.hibernate.engine.SessionImplementor session)
Called just after the entity has been reassociated with the session


createProxy

public java.lang.Object createProxy(java.io.Serializable id,
                                    org.hibernate.engine.SessionImplementor session)
                             throws org.hibernate.HibernateException
Create a new proxy instance


isTransient

public java.lang.Boolean isTransient(java.lang.Object object,
                                     org.hibernate.engine.SessionImplementor session)
                              throws org.hibernate.HibernateException
Is this a new transient instance?


getPropertyValuesToInsert

public java.lang.Object[] getPropertyValuesToInsert(java.lang.Object object,
                                                    java.util.Map mergeMap,
                                                    org.hibernate.engine.SessionImplementor session)
                                             throws org.hibernate.HibernateException
Return the values of the insertable properties of the object (including backrefs)


processInsertGeneratedProperties

public void processInsertGeneratedProperties(java.io.Serializable id,
                                             java.lang.Object entity,
                                             java.lang.Object[] state,
                                             org.hibernate.engine.SessionImplementor session)
Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the org.hibernate.engine.PersistenceContext.

Note, that because we update the PersistenceContext here, callers need to take care that they have already written the initial snapshot to the PersistenceContext before calling this method.


processUpdateGeneratedProperties

public void processUpdateGeneratedProperties(java.io.Serializable id,
                                             java.lang.Object entity,
                                             java.lang.Object[] state,
                                             org.hibernate.engine.SessionImplementor session)
Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the org.hibernate.engine.PersistenceContext.

Note, that because we update the PersistenceContext here, callers need to take care that they have already written the initial snapshot to the PersistenceContext before calling this method.


getMappedClass

public java.lang.Class getMappedClass(org.hibernate.EntityMode entityMode)
The persistent class, or null


implementsLifecycle

public boolean implementsLifecycle(org.hibernate.EntityMode entityMode)
Does the class implement the Lifecycle interface.


implementsValidatable

public boolean implementsValidatable(org.hibernate.EntityMode entityMode)
Does the class implement the Validatable interface.


getConcreteProxyClass

public java.lang.Class getConcreteProxyClass(org.hibernate.EntityMode entityMode)
Get the proxy interface that instances of this concrete class will be cast to (optional operation).


setPropertyValues

public void setPropertyValues(java.lang.Object object,
                              java.lang.Object[] values,
                              org.hibernate.EntityMode entityMode)
                       throws org.hibernate.HibernateException
Set the given values to the mapped properties of the given object


setPropertyValue

public void setPropertyValue(java.lang.Object object,
                             int i,
                             java.lang.Object value,
                             org.hibernate.EntityMode entityMode)
                      throws org.hibernate.HibernateException
Set the value of a particular property


getPropertyValues

public java.lang.Object[] getPropertyValues(java.lang.Object object,
                                            org.hibernate.EntityMode entityMode)
                                     throws org.hibernate.HibernateException
Return the (loaded) values of the mapped properties of the object (not including backrefs)


getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         int i,
                                         org.hibernate.EntityMode entityMode)
                                  throws org.hibernate.HibernateException
Get the value of a particular property


getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         java.lang.String propertyName,
                                         org.hibernate.EntityMode entityMode)
                                  throws org.hibernate.HibernateException
Get the value of a particular property


getIdentifier

public java.io.Serializable getIdentifier(java.lang.Object object,
                                          org.hibernate.EntityMode entityMode)
                                   throws org.hibernate.HibernateException
Get the identifier of an instance (throw an exception if no identifier property)


setIdentifier

public void setIdentifier(java.lang.Object object,
                          java.io.Serializable id,
                          org.hibernate.EntityMode entityMode)
                   throws org.hibernate.HibernateException
Set the identifier of an instance (or do nothing if no identifier property)


getVersion

public java.lang.Object getVersion(java.lang.Object object,
                                   org.hibernate.EntityMode entityMode)
                            throws org.hibernate.HibernateException
Get the version number (or timestamp) from the object's version property (or return null if not versioned)


instantiate

public java.lang.Object instantiate(java.io.Serializable id,
                                    org.hibernate.EntityMode entityMode)
                             throws org.hibernate.HibernateException
Create a class instance initialized with the given identifier


isInstance

public boolean isInstance(java.lang.Object object,
                          org.hibernate.EntityMode entityMode)
Is the given object an instance of this entity?


hasUninitializedLazyProperties

public boolean hasUninitializedLazyProperties(java.lang.Object object,
                                              org.hibernate.EntityMode entityMode)
Does the given instance have any uninitialized lazy properties?


resetIdentifier

public void resetIdentifier(java.lang.Object entity,
                            java.io.Serializable currentId,
                            java.lang.Object currentVersion,
                            org.hibernate.EntityMode entityMode)
Set the identifier and version of the given instance back to its "unsaved" value, returning the id


getSubclassEntityPersister

public EntityPersister getSubclassEntityPersister(java.lang.Object instance,
                                                  org.hibernate.engine.SessionFactoryImplementor factory,
                                                  org.hibernate.EntityMode entityMode)
Get the persister for an instance of this class or a subclass