| Access | Constructor and Description |
|---|---|
| public | PreUpdateEvent(Object
The entity to be updated. entity, Serializable The id of the entity to use for updating. id, Object[] The state to be updated. state, Object[] The state of the entity at the time it was loaded from
the database. oldState, EntityPersister The entity's persister. persister, EventSource The session from which the event originated. source)Constructs an event containing the pertinent information. |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | Returns: The loaded state, or null.The old state of the entity at the time it was last loaded from the database; can be null in the case of detached entities. |
| public Object[] |
| oldState | back to summary |
|---|---|
| private Object[] oldState | |
| state | back to summary |
|---|---|
| private Object[] state | |
| PreUpdateEvent | back to summary |
|---|---|
| public PreUpdateEvent(Object entity, Serializable id, Object[] state, Object[] oldState, EntityPersister persister, EventSource source) Constructs an event containing the pertinent information.
| |
| getOldState | back to summary |
|---|---|
| public Object[] getOldState() The old state of the entity at the time it was last loaded from the database; can be null in the case of detached entities.
| |
| getState | back to summary |
|---|---|
| public Object[] getState() Retrieves the state to be used in the update.
| |