public class PreInsertEvent extends AbstractPreDatabaseOperationEvent
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getState()
Getter for property 'state'.
|
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
getSession
public PreInsertEvent(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, EntityPersister persister, EventSource source)
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.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.