Example usage for Java org.hibernate.persister.entity EntityPersister fields, constructors, methods, implement or subclass
The text is from its open source code.
void | afterReassociate(Object entity, SharedSessionContractImplementor session) Called just after the entity has been reassociated with the session |
Object | createProxy(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. |
EntityDataAccess | getCacheAccessStrategy() Get the cache (optional operation) |
ClassMetadata | getClassMetadata() 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 |
EntityMetamodel | getEntityMetamodel() Retrieve the underlying entity metamodel instance... |
String | getEntityName() The entity name which this persister maps. |
SessionFactoryImplementor | getFactory() Return the SessionFactory to which this persister "belongs". |
Serializable | getIdentifier(Object entity, SharedSessionContractImplementor session) Get the identifier of an instance (throw an exception if no identifier property) |
IdentifierGenerator | getIdentifierGenerator() Determine which identifier generation strategy is used for this entity. |
String | getIdentifierPropertyName() Get the name of the identifier property (or return null) - need not return the name of an actual Java property |
Type | getIdentifierType() Get the identifier type |
Class | getMappedClass() 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) |
Type | getPropertyType(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) |
Object | getPropertyValue(Object object, int i) Get the value of a particular property |
Object | getPropertyValue(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) |
String | getRootEntityName() Returns an object that identifies the space in which identifiers of this entity hierarchy are unique. |
Object | getVersion(Object object) Get the version number (or timestamp) from the object's version property (or return null if not versioned) |
int | getVersionProperty() If #isVersioned() , then what is the index of the property holding the locking value. |
VersionType | getVersionType() If #isVersioned() , then what is the type of the property holding the locking value. |
boolean | hasCache() Does this class have a cache. |
boolean | hasCascades() Determine whether this entity has any non-none cascading. |
boolean | hasCollections() Determine whether this entity contains references to persistent collections. |
boolean | isMutable() Determine whether instances of this entity are considered mutable. |
boolean | isVersioned() Determine whether optimistic locking by column is enabled for this entity. |
void | setIdentifier(Object entity, Serializable id, SharedSessionContractImplementor session) Inject the identifier value into the given entity. |
void | setPropertyValue(Object object, int i, Object value) Set the value of a particular property |