Class 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:
  • Constructor Details

    • 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 Details

    • getState

      public Object[] getState()
      Retrieves the state to be used in the upsert.
      Returns:
      The current state.