Package org.hibernate.event.spi
Class PreInsertEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- org.hibernate.event.spi.PreInsertEvent
-
- All Implemented Interfaces:
java.io.Serializable
,PermissionCheckEntityInformation
public class PreInsertEvent extends AbstractPreDatabaseOperationEvent
Represents a pre-insert event, which occurs just prior to performing the insert of an entity into the database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreInsertEvent(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getState()
Getter for property 'state'.-
Methods inherited from class org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
PreInsertEvent
public PreInsertEvent(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.- Parameters:
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.
-
-