From class
org.hibernate.event.def.AbstractSaveEventListener
void
|
cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, Object anything)
Handles to calls needed to perform post-save cascades.
|
void
|
cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, Object anything)
Handles the calls needed to perform pre-save cascades for the given entity.
|
Boolean
|
getAssumedUnsaved()
|
abstract
CascadingAction
|
getCascadeAction()
|
int
|
getEntityState(Object entity, String entityName, EntityEntry entry, SessionImplementor source)
Determine whether the entity is persistent, detached, or transient
|
String
|
getLoggableName(String entityName, Object entity)
|
Map
|
getMergeMap(Object anything)
|
boolean
|
invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source)
|
boolean
|
isVersionIncrementDisabled()
After the save, will te version number be incremented
if the instance is modified?
|
Serializable
|
performSave(Object entity, Serializable id, EntityPersister persister, boolean useIdentityColumn, Object anything, EventSource source, boolean requiresImmediateIdAccess)
Ppepares the save call by checking the session caches for a pre-existing
entity and performing any lifecycle callbacks.
|
Serializable
|
performSaveOrReplicate(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, Object anything, EventSource source, boolean requiresImmediateIdAccess)
Performs all the actual work needed to save an entity (well to get the save moved to
the execution queue).
|
Serializable
|
saveWithGeneratedId(Object entity, String entityName, Object anything, EventSource source, boolean requiresImmediateIdAccess)
Prepares the save call using a newly generated id.
|
Serializable
|
saveWithRequestedId(Object entity, Serializable requestedId, String entityName, Object anything, EventSource source)
Prepares the save call using the given requested id.
|
boolean
|
substituteValuesIfNecessary(Object entity, Serializable id, Object[] values, EntityPersister persister, SessionImplementor source)
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
|
void
|
validate(Object entity, EntityPersister persister, EventSource source)
|
boolean
|
visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)
|
|