public class HibernateInterceptor extends EmptyInterceptor
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<Object> |
entities |
INSTANCE
Constructor and Description |
---|
HibernateInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterTransactionCompletion(Transaction tx) |
int[] |
findDirty(Object o,
Serializable id,
Object[] arg2,
Object[] arg3,
String[] arg4,
Type[] arg5) |
boolean |
onCollectionRecreate(Object collection,
Serializable key) |
boolean |
onCollectionRemove(Object collection,
Serializable key) |
boolean |
onCollectionUpdate(Object collection,
Serializable key) |
boolean |
onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
Type[] types) |
afterTransactionBegin, beforeTransactionCompletion, getEntity, getEntityName, instantiate, isTransient, onDelete, onFlushDirty, onLoad, onPrepareStatement, postFlush, preFlush
protected final ThreadLocal<Object> entities
public int[] findDirty(Object o, Serializable id, Object[] arg2, Object[] arg3, String[] arg4, Type[] arg5)
findDirty
in interface Interceptor
findDirty
in class EmptyInterceptor
public boolean onCollectionUpdate(Object collection, Serializable key) throws CallbackException
onCollectionUpdate
in interface Interceptor
onCollectionUpdate
in class EmptyInterceptor
CallbackException
public boolean onCollectionRecreate(Object collection, Serializable key) throws CallbackException
onCollectionRecreate
in interface Interceptor
onCollectionRecreate
in class EmptyInterceptor
CallbackException
public boolean onCollectionRemove(Object collection, Serializable key) throws CallbackException
onCollectionRemove
in interface Interceptor
onCollectionRemove
in class EmptyInterceptor
CallbackException
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
onSave
in interface Interceptor
onSave
in class EmptyInterceptor
public void afterTransactionCompletion(Transaction tx)
afterTransactionCompletion
in interface Interceptor
afterTransactionCompletion
in class EmptyInterceptor
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly