Class PreUpsertEvent

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