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

public abstract Class AbstractPreDatabaseOperationEvent

extends AbstractEvent
Class Inheritance
Known Direct Subclasses
org.hibernate.event.spi.PreDeleteEvent, org.hibernate.event.spi.PreInsertEvent, org.hibernate.event.spi.PreUpdateEvent
Imports
org.hibernate.persister.entity.EntityPersister

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 Object
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
,
Object
The entity id to be involved in the database operation.
id
,
EntityPersister
The entity's persister.
persister
)

Constructs an event containing the pertinent information.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The entity.
getEntity
()

Retrieves the entity involved in the database operation.

public Object

Returns:

The id.
getId
()

The id to be used in the database operation.

public EntityPersister

Returns:

The entity persister.
getPersister
()

The persister for the entity.

Inherited from org.hibernate.event.spi.AbstractEvent:
getSession

Field Detail

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

Constructor Detail

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

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:Object

The entity id to be involved in the database operation.

persister:EntityPersister

The entity's persister.

Method Detail

getEntityback to summary
public Object getEntity()

Retrieves the entity involved in the database operation.

Returns:Object

The entity.

getIdback to summary
public Object getId()

The id to be used in the database operation.

Returns:Object

The id.

getPersisterback to summary
public EntityPersister getPersister()

The persister for the entity.

Returns:EntityPersister

The entity persister.