org.hibernate.event
Class AbstractPreDatabaseOperationEvent
- Serializable
public abstract class AbstractPreDatabaseOperationEvent
Represents an operation we are about to perform against the database.
AbstractPreDatabaseOperationEvent
public AbstractPreDatabaseOperationEvent(EventSource source,
Object entity,
Serializable id,
EntityPersister persister)
Constructs an event containing the pertinent information.
source
- The session from which the event originated.entity
- The entity to be invloved in the database operation.id
- The entity id to be invloved in the database operation.persister
- The entity's persister.
getEntity
public Object getEntity()
Retrieves the entity involved in the database operation.
getId
public Serializable getId()
The id to be used in the database operation.
getSource
public EventSource getSource()
Use AbstractPreDatabaseOperationEvent
instead
Getter for property 'source'. This is the session from which the event
originated.
Some of the pre-* events had previous exposed the event source using
getSource() because they had not originally extended from
AbstractEvent
.
- Value for property 'source'.