Java org.hibernate Interceptor fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate Interceptor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate Interceptor.

The text is from its open source code.

Subclass

org.hibernate.Interceptor has subclasses.
Click this link to see all its subclasses.

Implementation

org.hibernate.Interceptor has the following implementations.
Click this link to see all its implementation.

Method

voidafterTransactionBegin(Transaction tx)
Called when a Hibernate transaction is begun via the Hibernate Transaction API.
voidafterTransactionCompletion(Transaction tx)
Called after a transaction is committed or rolled back.
voidbeforeTransactionCompletion(Transaction tx)
Called before a transaction is committed (but not before rollback).
int[]findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
Called from flush().
ObjectgetEntity(String entityName, Serializable id)
Get a fully loaded entity instance that is cached externally.
StringgetEntityName(Object object)
Get the entity name for a persistent or transient instance.
Objectinstantiate(String entityName, EntityMode entityMode, Serializable id)
Instantiate the entity class.
BooleanisTransient(Object entity)
Called to distinguish between transient and detached entities.
voidonCollectionRecreate(Object collection, Serializable key)
Called before a collection is (re)created.
voidonCollectionRemove(Object collection, Serializable key)
Called before a collection is deleted.
voidonCollectionUpdate(Object collection, Serializable key)
Called before a collection is updated.
voidonDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
Called before an object is deleted.
booleanonFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
Called when an object is detected to be dirty, during a flush.
booleanonLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
Called just before an object is initialized.
StringonPrepareStatement(String sql)
Called when sql string is being prepared.
booleanonSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
Called before an object is saved.
voidpostFlush(Iterator entities)
Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
voidpreFlush(Iterator entities)
Called before a flush.