Package org.hibernate.event.spi
Class AbstractPreDatabaseOperationEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- All Implemented Interfaces:
java.io.Serializable
,PermissionCheckEntityInformation
- Direct Known Subclasses:
PreDeleteEvent
,PreInsertEvent
,PreUpdateEvent
public abstract class AbstractPreDatabaseOperationEvent extends AbstractEvent implements PermissionCheckEntityInformation
Represents an operation we are about to perform against the database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractPreDatabaseOperationEvent(EventSource source, java.lang.Object entity, java.io.Serializable id, EntityPersister persister)
Constructs an event containing the pertinent information.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getEntity()
Deprecated.Support for JACC will be removed in 6.0java.lang.String
getEntityName()
Deprecated.Support for JACC will be removed in 6.0java.io.Serializable
getId()
The id to be used in the database operation.java.io.Serializable
getIdentifier()
Deprecated.Support for JACC will be removed in 6.0EntityPersister
getPersister()
The persister for theentity
.EventSource
getSource()
Deprecated.UseAbstractEvent.getSession()
instead-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
AbstractPreDatabaseOperationEvent
public AbstractPreDatabaseOperationEvent(EventSource source, java.lang.Object entity, java.io.Serializable id, EntityPersister persister)
Constructs an event containing the pertinent information.- Parameters:
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.
-
-
Method Detail
-
getEntity
@Deprecated public java.lang.Object getEntity()
Deprecated.Support for JACC will be removed in 6.0Retrieves the entity involved in the database operation.- Specified by:
getEntity
in interfacePermissionCheckEntityInformation
- Returns:
- The entity.
-
getId
public java.io.Serializable getId()
The id to be used in the database operation.- Returns:
- The id.
-
getPersister
public EntityPersister getPersister()
The persister for theentity
.- Returns:
- The entity persister.
-
getSource
@Deprecated public EventSource getSource()
Deprecated.UseAbstractEvent.getSession()
insteadGetter 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 fromAbstractEvent
.- Returns:
- Value for property 'source'.
-
getEntityName
@Deprecated public java.lang.String getEntityName()
Deprecated.Support for JACC will be removed in 6.0- Specified by:
getEntityName
in interfacePermissionCheckEntityInformation
-
getIdentifier
@Deprecated public java.io.Serializable getIdentifier()
Deprecated.Support for JACC will be removed in 6.0- Specified by:
getIdentifier
in interfacePermissionCheckEntityInformation
-
-