Package org.hibernate.event.spi
Class PreUpsertEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- org.hibernate.event.spi.PreUpsertEvent
-
- All Implemented Interfaces:
Serializable
public class PreUpsertEvent extends AbstractPreDatabaseOperationEvent
Represents a pre-upsert event, which occurs just prior to performing the upsert of an entity in the database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreUpsertEvent(Object entity, Object id, 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 Object[]
getState()
Retrieves the state to be used in the upsert.-
Methods inherited from class org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
getEntity, getFactory, getId, getPersister
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
PreUpsertEvent
public PreUpsertEvent(Object entity, Object id, Object[] state, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.- Parameters:
entity
- The entity to be updated.id
- The id of the entity to use for updating.state
- The state to be updated.persister
- The entity's persister.source
- The session from which the event originated.
-
-
Method Detail
-
getState
public Object[] getState()
Retrieves the state to be used in the upsert.- Returns:
- The current state.
-
-