java.lang.Object | ||
↳ | org.hibernate.event.def.AbstractReassociateEventListener | |
↳ | org.hibernate.event.def.AbstractSaveEventListener |
Known Direct Subclasses |
Known Indirect Subclasses |
A convenience bas class for listeners responding to save events.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DELETED | ||||||||||
int | DETACHED | ||||||||||
int | PERSISTENT | ||||||||||
int | TRANSIENT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Handles to calls needed to perform post-save cascades.
| |||||||||||
Handles the calls needed to perform pre-save cascades for the given entity.
| |||||||||||
Determine whether the entity is persistent, detached, or transient
| |||||||||||
After the save, will te version number be incremented
if the instance is modified?
| |||||||||||
Ppepares the save call by checking the session caches for a pre-existing
entity and performing any lifecycle callbacks.
| |||||||||||
Performs all the actual work needed to save an entity (well to get the save moved to
the execution queue).
| |||||||||||
Prepares the save call using a newly generated id.
| |||||||||||
Prepares the save call using the given requested id.
| |||||||||||
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.event.def.AbstractReassociateEventListener
| |||||||||||
From class
java.lang.Object
|
Handles to calls needed to perform post-save cascades.
source | The session from which the event originated. |
---|---|
persister | The entity's persister instance. |
entity | The entity beng saved. |
anything | Generally cascade-specific data |
Handles the calls needed to perform pre-save cascades for the given entity.
source | The session from whcih the save event originated. |
---|---|
persister | The entity's persister instance. |
entity | The entity to be saved. |
anything | Generally cascade-specific data |
Determine whether the entity is persistent, detached, or transient
entity | The entity to check |
---|---|
entityName | The name of the entity |
entry | The entity's entry in the persistence context |
source | The originating session. |
After the save, will te version number be incremented if the instance is modified?
Ppepares the save call by checking the session caches for a pre-existing entity and performing any lifecycle callbacks.
entity | The entity to be saved. |
---|---|
id | The id by which to save the entity. |
persister | The entity's persister instance. |
useIdentityColumn | Is an identity column being used? |
anything | Generally cascade-specific information. |
source | The session from which the event originated. |
requiresImmediateIdAccess | does the event context require access to the identifier immediately after execution of this method (if not, post-insert style id generators may be postponed if we are outside a transaction). |
Performs all the actual work needed to save an entity (well to get the save moved to the execution queue).
entity | The entity to be saved |
---|---|
key | The id to be used for saving the entity (or null, in the case of identity columns) |
persister | The entity's persister instance. |
useIdentityColumn | Should an identity column be used for id generation? |
anything | Generally cascade-specific information. |
source | The session which is the source of the current event. |
requiresImmediateIdAccess | Is access to the identifier required immediately after the completion of the save? persist(), for example, does not require this... |
Prepares the save call using a newly generated id.
entity | The entity to be saved |
---|---|
entityName | The entity-name for the entity to be saved |
anything | Generally cascade-specific information. |
source | The session which is the source of this save event. |
requiresImmediateIdAccess | does the event context require access to the identifier immediately after execution of this method (if not, post-insert style id generators may be postponed if we are outside a transaction). |
Prepares the save call using the given requested id.
entity | The entity to be saved. |
---|---|
requestedId | The id to which to associate the entity. |
entityName | The name of the entity being saved. |
anything | Generally cascade-specific information. |
source | The session which is the source of this save event. |
Perform any property value substitution that is necessary (interceptor callback, version initialization...)
entity | The entity |
---|---|
id | The entity identifier |
values | The snapshot entity state |
persister | The entity persister |
source | The originating session |