Top Description Fields Constructors Methods
org.hibernate.event.spi

public abstract Class AbstractPreDatabaseOperationEvent

extends AbstractEvent
implements PermissionCheckEntityInformation
Class Inheritance
All Implemented Interfaces
org.hibernate.secure.spi.PermissionCheckEntityInformation
Known Direct Subclasses
org.hibernate.event.spi.PreDeleteEvent, org.hibernate.event.spi.PreInsertEvent, org.hibernate.event.spi.PreUpdateEvent
Imports
java.io.Serializable, org.hibernate.persister.entity.EntityPersister, org.hibernate.secure.spi.PermissionCheckEntityInformation

Deprecated

as a consequence of PermissionCheckEntityInformation being deprecated. See corresponding docs for further information.

Represents an operation we are about to perform against the database.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Object
private final Serializable
private final EntityPersister

Constructor Summary

AccessConstructor and Description
public
AbstractPreDatabaseOperationEvent(EventSource
The session from which the event originated.
source
,
Object
The entity to be involved in the database operation.
entity
,
Serializable
The entity id to be involved in the database operation.
id
,
EntityPersister
The entity's persister.
persister
)

Deprecated as a consequence of EventSource being deprecated.
Constructs an event containing the pertinent information.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The entity.
getEntity
()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getEntity.

Retrieves the entity involved in the database operation.
public String
getEntityName()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getEntityName.

Deprecated Support for JACC will be removed in 6.0
public Serializable

Returns:

The id.
getId
()

The id to be used in the database operation.

public Serializable
getIdentifier()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getIdentifier.

Deprecated Support for JACC will be removed in 6.0
public EntityPersister

Returns:

The entity persister.
getPersister
()

The persister for the entity.

public EventSource

Returns:

Value for property 'source'.
getSource
()

Deprecated Use getSession instead
Getter for property 'source'.
Inherited from org.hibernate.event.spi.AbstractEvent:
getSession

Field Detail

entityback to summary
private final Object entity
idback to summary
private final Serializable id
persisterback to summary
private final EntityPersister persister

Constructor Detail

AbstractPreDatabaseOperationEventback to summary
public AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Serializable id, EntityPersister persister)

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

Constructs an event containing the pertinent information.

Parameters
source:EventSource

The session from which the event originated.

entity:Object

The entity to be involved in the database operation.

id:Serializable

The entity id to be involved in the database operation.

persister:EntityPersister

The entity's persister.

Method Detail

getEntityback to summary
public Object getEntity()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getEntity.

Retrieves the entity involved in the database operation.

Returns:Object

The entity.

Annotations
@Override
getEntityNameback to summary
public String getEntityName()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getEntityName.

Deprecated

Support for JACC will be removed in 6.0

Annotations
@Override
@Deprecated
getIdback to summary
public Serializable getId()

The id to be used in the database operation.

Returns:Serializable

The id.

getIdentifierback to summary
public Serializable getIdentifier()

Implements org.hibernate.secure.spi.PermissionCheckEntityInformation.getIdentifier.

Deprecated

Support for JACC will be removed in 6.0

Annotations
@Override
@Deprecated
getPersisterback to summary
public EntityPersister getPersister()

The persister for the entity.

Returns:EntityPersister

The entity persister.

getSourceback to summary
public EventSource getSource()

Deprecated

Use getSession 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.

Returns:EventSource

Value for property 'source'.

Annotations
@Deprecated