java.lang.Object | |
↳ | org.hibernate.EmptyInterceptor |
An interceptor that does nothing. May be used as a base class for application-defined custom interceptors.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
INSTANCE |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a Hibernate transaction is begun via the Hibernate Transaction
API.
| |||||||||||
Called after a transaction is committed or rolled back.
| |||||||||||
Called before a transaction is committed (but not before rollback).
| |||||||||||
Called from flush().
| |||||||||||
Get a fully loaded entity instance that is cached externally
| |||||||||||
Get the entity name for a persistent or transient instance
| |||||||||||
Instantiate the entity class.
| |||||||||||
Called to distinguish between transient and detached entities.
| |||||||||||
Called before a collection is (re)created.
| |||||||||||
Called before a collection is deleted.
| |||||||||||
Called before a collection is updated.
| |||||||||||
Called before an object is deleted.
| |||||||||||
Called when an object is detected to be dirty, during a flush.
| |||||||||||
Called just before an object is initialized.
| |||||||||||
Called when sql string is being prepared.
| |||||||||||
Called before an object is saved.
| |||||||||||
Called after a flush that actually ends in execution of the SQL statements required to synchronize
in-memory state with the database.
| |||||||||||
Called before a flush
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.Interceptor
|
Called when a Hibernate transaction is begun via the Hibernate Transaction API. Will not be called if transactions are being controlled via some other mechanism (CMT, for example).
Called after a transaction is committed or rolled back.
Called before a transaction is committed (but not before rollback).
Called from flush(). The return value determines whether the entity is updated
entity | a persistent entity |
---|
Get a fully loaded entity instance that is cached externally
entityName | the name of the entity |
---|---|
id | the instance identifier |
Get the entity name for a persistent or transient instance
object | an entity instance |
---|
Instantiate the entity class. Return null to indicate that Hibernate should use the default constructor of the class. The identifier property of the returned instance should be initialized with the given identifier.
entityName | the name of the entity |
---|---|
entityMode | The type of entity instance to be returned. |
id | the identifier of the new instance |
Called to distinguish between transient and detached entities. The return value determines the state of the entity with respect to the current session.
entity | a transient or detached entity |
---|
Called before a collection is (re)created.
CallbackException |
---|
Called before a collection is deleted.
CallbackException |
---|
Called before a collection is updated.
CallbackException |
---|
Called before an object is deleted. It is not recommended that the interceptor modify the state.
Called when an object is detected to be dirty, during a flush. The interceptor may modify the detected currentState, which will be propagated to both the database and the persistent object. Note that not all flushes end in actual synchronization with the database, in which case the new currentState will be propagated to the object, but not necessarily (immediately) to the database. It is strongly recommended that the interceptor not modify the previousState.
Called just before an object is initialized. The interceptor may change the state, which will be propagated to the persistent object. Note that when this method is called, entity will be an empty uninitialized instance of the class.
Called when sql string is being prepared.
sql | sql to be prepared |
---|
Called before an object is saved. The interceptor may modify the state, which will be used for the SQL INSERT and propagated to the persistent object.
Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.