org.hibernate.event
Class PreInsertEvent
- Serializable
public class PreInsertEvent
Represents a pre-insert event, which occurs just prior to
performing the insert of an entity into the database.
Object[] | getState() - Getter for property 'state'.
|
PreInsertEvent
public PreInsertEvent(Object entity,
Serializable id,
Object[] state,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
entity
- The entity to be inserted.id
- The id to use in the insertion.state
- The state to be inserted.persister
- The entity's persister.source
- The session from which the event originated.
getState
public Object[] getState()
Getter for property 'state'. These are the values to be inserted.
- Value for property 'state'.