Class AbstractPreDatabaseOperationEvent

    • Constructor Detail

      • AbstractPreDatabaseOperationEvent

        public AbstractPreDatabaseOperationEvent​(EventSource source,
                                                 Object entity,
                                                 Object id,
                                                 EntityPersister persister)
        Constructs an event containing the pertinent information.
        Parameters:
        source - The session from which the event originated.
        entity - The entity to be involved in the database operation.
        id - The entity id to be involved in the database operation.
        persister - The entity's persister.
    • Method Detail

      • getEntity

        public Object getEntity()
        Retrieves the entity involved in the database operation.
        Returns:
        The entity.
      • getId

        public Object getId()
        The id to be used in the database operation.
        Returns:
        The id.
      • getPersister

        public EntityPersister getPersister()
        The persister for the entity.
        Returns:
        The entity persister.