public class PreInsertEvent extends AbstractPreDatabaseOperationEvent
Constructor and Description |
---|
PreInsertEvent(Object entity,
Serializable id,
Object[] state,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getState()
Getter for property 'state'.
|
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
getSession
public PreInsertEvent(Object entity, Serializable id, 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.public Object[] getState()
Copyright © 2017 JBoss by Red Hat. All rights reserved.