|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.event.AbstractEvent
org.hibernate.event.AbstractPreDatabaseOperationEvent
public abstract class AbstractPreDatabaseOperationEvent
Represents an operation we are about to perform against the database.
| Constructor Summary | |
|---|---|
AbstractPreDatabaseOperationEvent(EventSource source,
Object entity,
Serializable id,
EntityPersister persister)
Constructs an event containing the pertinent information. |
|
| Method Summary | |
|---|---|
Object |
getEntity()
Retrieves the entity involved in the database operation. |
Serializable |
getId()
The id to be used in the database operation. |
EntityPersister |
getPersister()
The persister for the entity. |
EventSource |
getSource()
Deprecated. Use AbstractEvent.getSession() instead |
| Methods inherited from class org.hibernate.event.AbstractEvent |
|---|
getSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPreDatabaseOperationEvent(EventSource source,
Object entity,
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.| Method Detail |
|---|
public Object getEntity()
public Serializable getId()
public EntityPersister getPersister()
entity.
public EventSource getSource()
AbstractEvent.getSession() instead
AbstractEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||