Java org.hibernate.persister.entity EntityPersister fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate.persister.entity EntityPersister fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate.persister.entity EntityPersister.

The text is from its open source code.

Method

voidafterReassociate(Object entity, SharedSessionContractImplementor session)
Called just after the entity has been reassociated with the session
ObjectcreateProxy(Serializable id, SharedSessionContractImplementor session)
Create a new proxy instance
int[]findDirty(Object[] currentState, Object[] previousState, Object owner, SharedSessionContractImplementor session)
Compare the two snapshots to determine if they represent dirty state.
EntityDataAccessgetCacheAccessStrategy()
Get the cache (optional operation)
ClassMetadatagetClassMetadata()
Get the user-visible metadata for the class (optional operation)
Object[]getDatabaseSnapshot(Serializable id, SharedSessionContractImplementor session)
Get the current database state of the object, in a "hydrated" form, without resolving identifiers
EntityMetamodelgetEntityMetamodel()
Retrieve the underlying entity metamodel instance...
StringgetEntityName()
The entity name which this persister maps.
SessionFactoryImplementorgetFactory()
Return the SessionFactory to which this persister "belongs".
SerializablegetIdentifier(Object entity, SharedSessionContractImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
IdentifierGeneratorgetIdentifierGenerator()
Determine which identifier generation strategy is used for this entity.
StringgetIdentifierPropertyName()
Get the name of the identifier property (or return null) - need not return the name of an actual Java property
TypegetIdentifierType()
Get the identifier type
ClassgetMappedClass()
The persistent class, or null
int[]getNaturalIdentifierProperties()
If the entity defines a natural id ( #hasNaturalIdentifier() ), which properties make up the natural id.
CascadeStyle[]getPropertyCascadeStyles()
Get the cascade styles of the properties (optional operation)
boolean[]getPropertyLaziness()
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)
TypegetPropertyType(String propertyName)
Get the type of a particular property by name.
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)
ObjectgetPropertyValue(Object object, int i)
Get the value of a particular property
ObjectgetPropertyValue(Object object, String propertyName)
Get the value of a particular property
Object[]getPropertyValuesToInsert(Object object, Map mergeMap, SharedSessionContractImplementor session)
Return the values of the insertable properties of the object (including backrefs)
StringgetRootEntityName()
Returns an object that identifies the space in which identifiers of this entity hierarchy are unique.
ObjectgetVersion(Object object)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
intgetVersionProperty()
If #isVersioned() , then what is the index of the property holding the locking value.
VersionTypegetVersionType()
If #isVersioned() , then what is the type of the property holding the locking value.
booleanhasCache()
Does this class have a cache.
booleanhasCascades()
Determine whether this entity has any non-none cascading.
booleanhasCollections()
Determine whether this entity contains references to persistent collections.
booleanisMutable()
Determine whether instances of this entity are considered mutable.
booleanisVersioned()
Determine whether optimistic locking by column is enabled for this entity.
voidsetIdentifier(Object entity, Serializable id, SharedSessionContractImplementor session)
Inject the identifier value into the given entity.
voidsetPropertyValue(Object object, int i, Object value)
Set the value of a particular property