public abstract class AbstractPreDatabaseOperationEvent extends AbstractEvent implements PermissionCheckEntityInformation
Constructor and Description |
---|
AbstractPreDatabaseOperationEvent(EventSource source,
java.lang.Object entity,
java.io.Serializable id,
EntityPersister persister)
Constructs an event containing the pertinent information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getEntity()
Retrieves the entity involved in the database operation.
|
java.lang.String |
getEntityName() |
java.io.Serializable |
getId()
The id to be used in the database operation.
|
java.io.Serializable |
getIdentifier() |
EntityPersister |
getPersister()
The persister for the
entity . |
EventSource |
getSource()
Deprecated.
Use
AbstractEvent.getSession() instead |
getSession
public AbstractPreDatabaseOperationEvent(EventSource source, java.lang.Object entity, java.io.Serializable id, EntityPersister persister)
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.public java.lang.Object getEntity()
getEntity
in interface PermissionCheckEntityInformation
public java.io.Serializable getId()
public EntityPersister getPersister()
entity
.@Deprecated public EventSource getSource()
AbstractEvent.getSession()
insteadAbstractEvent
.public java.lang.String getEntityName()
getEntityName
in interface PermissionCheckEntityInformation
public java.io.Serializable getIdentifier()
getIdentifier
in interface PermissionCheckEntityInformation
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.