abstract
void
|
afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
Called just after the entities properties have been initialized
|
abstract
void
|
afterReassociate(Object entity, SessionImplementor session)
Called just after the entity has been reassociated with the session
|
abstract
boolean
|
canExtractIdOutOfEntity()
Determine whether detached instances of this entity carry their own
identifier value.
|
abstract
Object
|
createProxy(Serializable id, SessionImplementor session)
Create a new proxy instance
|
abstract
void
|
delete(Serializable id, Object version, Object object, SessionImplementor session)
Delete a persistent instance
|
abstract
int[]
|
findDirty(Object[] currentState, Object[] previousState, Object owner, SessionImplementor session)
Compare the two snapshots to determine if they represent dirty state.
|
abstract
int[]
|
findModified(Object[] old, Object[] current, Object object, SessionImplementor session)
Compare the two snapshots to determine if they represent modified state.
|
abstract
Object
|
forceVersionIncrement(Serializable id, Object currentVersion, SessionImplementor session)
|
abstract
EntityRegionAccessStrategy
|
getCacheAccessStrategy()
Get the cache (optional operation)
|
abstract
CacheEntryStructure
|
getCacheEntryStructure()
Get the cache structure
|
abstract
ClassMetadata
|
getClassMetadata()
Get the user-visible metadata for the class (optional operation)
|
abstract
Class
|
getConcreteProxyClass(EntityMode entityMode)
Get the proxy interface that instances of this concrete class will be
cast to (optional operation).
|
abstract
Object
|
getCurrentVersion(Serializable id, SessionImplementor session)
Get the current version of the object, or return null if there is no row for
the given identifier.
|
abstract
Object[]
|
getDatabaseSnapshot(Serializable id, SessionImplementor session)
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
|
abstract
EntityMetamodel
|
getEntityMetamodel()
Retrieve the underlying entity metamodel instance...
|
abstract
String
|
getEntityName()
The entity name which this persister maps.
|
abstract
SessionFactoryImplementor
|
getFactory()
Return the SessionFactory to which this persister "belongs".
|
abstract
Serializable
|
getIdentifier(Object entity, SessionImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
|
abstract
Serializable
|
getIdentifier(Object object, EntityMode entityMode)
|
abstract
IdentifierGenerator
|
getIdentifierGenerator()
Determine which identifier generation strategy is used for this entity.
|
abstract
String
|
getIdentifierPropertyName()
Get the name of the identifier property (or return null) - need not return the
name of an actual Java property
|
abstract
Type
|
getIdentifierType()
Get the identifier type
|
abstract
Class
|
getMappedClass(EntityMode entityMode)
The persistent class, or null
|
abstract
int[]
|
getNaturalIdentifierProperties()
|
abstract
Object[]
|
getNaturalIdentifierSnapshot(Serializable id, SessionImplementor session)
Retrieve the current state of the natural-id properties from the database.
|
abstract
CascadeStyle[]
|
getPropertyCascadeStyles()
Get the cascade styles of the properties (optional operation)
|
abstract
boolean[]
|
getPropertyCheckability()
Get the "checkability" of the properties of this class
(is the property dirty checked, does the cache need
to be updated)
|
abstract
ValueInclusion[]
|
getPropertyInsertGenerationInclusions()
Which of the properties of this class are database generated values on insert?
|
abstract
boolean[]
|
getPropertyInsertability()
Get the "insertability" of the properties of this class
(does the property appear in an SQL INSERT)
|
abstract
boolean[]
|
getPropertyLaziness()
|
abstract
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)
|
abstract
boolean[]
|
getPropertyNullability()
Get the nullability of the properties of this class
|
abstract
Serializable[]
|
getPropertySpaces()
Returns an array of objects that identify spaces in which properties of
this entity are persisted, for instances of this class only.
|
abstract
Type
|
getPropertyType(String propertyName)
Get the type of a particular property by name.
|
abstract
Type[]
|
getPropertyTypes()
Get the Hibernate types of the class properties
|
abstract
ValueInclusion[]
|
getPropertyUpdateGenerationInclusions()
Which of the properties of this class are database generated values on update?
|
abstract
boolean[]
|
getPropertyUpdateability()
Get the "updateability" of the properties of this class
(does the property appear in an SQL UPDATE)
|
abstract
Object
|
getPropertyValue(Object object, int i, EntityMode entityMode)
Get the value of a particular property
|
abstract
Object
|
getPropertyValue(Object object, String propertyName, EntityMode entityMode)
Get the value of a particular property
|
abstract
Object[]
|
getPropertyValues(Object object, EntityMode entityMode)
Return the (loaded) values of the mapped properties of the object (not including backrefs)
|
abstract
Object[]
|
getPropertyValuesToInsert(Object object, Map mergeMap, SessionImplementor session)
Return the values of the insertable properties of the object (including backrefs)
|
abstract
boolean[]
|
getPropertyVersionability()
Get the "versionability" of the properties of this class
(is the property optimistic-locked)
|
abstract
Serializable[]
|
getQuerySpaces()
Returns an array of objects that identify spaces in which properties of
this entity are persisted, for instances of this class and its subclasses.
|
abstract
String
|
getRootEntityName()
Returns an object that identifies the space in which identifiers of
this entity hierarchy are unique.
|
abstract
EntityPersister
|
getSubclassEntityPersister(Object instance, SessionFactoryImplementor factory, EntityMode entityMode)
A request has already identified the entity-name of this persister as the mapping for the given instance.
|
abstract
Object
|
getVersion(Object object, EntityMode entityMode)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
|
abstract
int
|
getVersionProperty()
If isVersioned() , then what is the index of the property
holding the locking value.
|
abstract
VersionType
|
getVersionType()
If isVersioned() , then what is the type of the property
holding the locking value.
|
abstract
EntityMode
|
guessEntityMode(Object object)
Try to discover the entity mode from the entity instance
|
abstract
boolean
|
hasCache()
Does this class have a cache.
|
abstract
boolean
|
hasCascades()
Determine whether this entity has any non-none cascading.
|
abstract
boolean
|
hasCollections()
Determine whether this entity contains references to persistent collections.
|
abstract
boolean
|
hasIdentifierProperty()
Determine whether the entity has a particular property holding
the identifier value.
|
abstract
boolean
|
hasInsertGeneratedProperties()
Does this entity define any properties as being database generated on insert?
|
abstract
boolean
|
hasLazyProperties()
Determine whether this entity defines any lazy properties (ala
bytecode instrumentation).
|
abstract
boolean
|
hasMutableProperties()
Determine whether any properties of this entity are considered mutable.
|
abstract
boolean
|
hasNaturalIdentifier()
Determine whether this entity defines a natural identifier.
|
abstract
boolean
|
hasProxy()
Determine whether this entity supports dynamic proxies.
|
abstract
boolean
|
hasSubselectLoadableCollections()
Determine whether this entity contains references to persistent collections
which are fetchable by subselect?
|
abstract
boolean
|
hasUninitializedLazyProperties(Object object, EntityMode entityMode)
Does the given instance have any uninitialized lazy properties?
|
abstract
boolean
|
hasUpdateGeneratedProperties()
Does this entity define any properties as being database generated on update?
|
abstract
boolean
|
implementsLifecycle(EntityMode entityMode)
Does the class implement the Lifecycle interface.
|
abstract
boolean
|
implementsValidatable(EntityMode entityMode)
Does the class implement the Validatable interface.
|
abstract
Serializable
|
insert(Object[] fields, Object object, SessionImplementor session)
Persist an instance, using a natively generated identifier (optional operation)
|
abstract
void
|
insert(Serializable id, Object[] fields, Object object, SessionImplementor session)
Persist an instance
|
abstract
Object
|
instantiate(Serializable id, SessionImplementor session)
Create a class instance initialized with the given identifier
|
abstract
Object
|
instantiate(Serializable id, EntityMode entityMode)
|
abstract
boolean
|
isBatchLoadable()
Is batch loading enabled?
|
abstract
boolean
|
isCacheInvalidationRequired()
Should we always invalidate the cache instead of
recaching updated state
|
abstract
boolean
|
isIdentifierAssignedByInsert()
Are identifiers of this entity assigned known before the insert execution?
Or, are they generated (in the database) by the insert execution.
|
abstract
boolean
|
isInherited()
Determine whether the entity is inherited one or more other entities.
|
abstract
boolean
|
isInstance(Object object, EntityMode entityMode)
Is the given object an instance of this entity?
|
abstract
boolean
|
isInstrumented(EntityMode entityMode)
Has the class actually been bytecode instrumented?
|
abstract
boolean
|
isLazyPropertiesCacheable()
Should lazy properties of this entity be cached?
|
abstract
boolean
|
isMutable()
Determine whether instances of this entity are considered mutable.
|
abstract
boolean
|
isSelectBeforeUpdateRequired()
Is select snapshot before update enabled?
|
abstract
boolean
|
isSubclassEntityName(String entityName)
Determine whether the given name represents a subclass entity
(or this entity itself) of the entity mapped by this persister.
|
abstract
Boolean
|
isTransient(Object object, SessionImplementor session)
Is this a new transient instance?
|
abstract
boolean
|
isVersionPropertyGenerated()
Does this entity contain a version property that is defined
to be database generated?
|
abstract
boolean
|
isVersioned()
Determine whether optimistic locking by column is enabled for this
entity.
|
abstract
Object
|
load(Serializable id, Object optionalObject, LockOptions lockOptions, SessionImplementor session)
Load an instance of the persistent class.
|
abstract
Object
|
load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor session)
Load an instance of the persistent class.
|
abstract
void
|
lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)
Do a version check (optional operation)
|
abstract
void
|
lock(Serializable id, Object version, Object object, LockOptions lockOptions, SessionImplementor session)
Do a version check (optional operation)
|
abstract
void
|
postInstantiate()
Finish the initialization of this object.
|
abstract
void
|
processInsertGeneratedProperties(Serializable id, Object entity, Object[] state, 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
PersistenceContext .
|
abstract
void
|
processUpdateGeneratedProperties(Serializable id, Object entity, Object[] state, 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
PersistenceContext .
|
abstract
void
|
resetIdentifier(Object entity, Serializable currentId, Object currentVersion, EntityMode entityMode)
|
abstract
void
|
resetIdentifier(Object entity, Serializable currentId, Object currentVersion, SessionImplementor session)
Set the identifier and version of the given instance back to its "unsaved" value.
|
abstract
void
|
setIdentifier(Object entity, Serializable id, SessionImplementor session)
Inject the identifier value into the given entity.
|
abstract
void
|
setIdentifier(Object entity, Serializable id, EntityMode entityMode)
|
abstract
void
|
setPropertyValue(Object object, int i, Object value, EntityMode entityMode)
Set the value of a particular property
|
abstract
void
|
setPropertyValues(Object object, Object[] values, EntityMode entityMode)
Set the given values to the mapped properties of the given object
|
abstract
void
|
update(Serializable id, Object[] fields, int[] dirtyFields, boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object object, Object rowId, SessionImplementor session)
Update a persistent instance
|