Package play.db.jpa
Class HibernateInterceptor
- java.lang.Object
-
- org.hibernate.EmptyInterceptor
-
- play.db.jpa.HibernateInterceptor
-
- All Implemented Interfaces:
java.io.Serializable,Interceptor
public class HibernateInterceptor extends EmptyInterceptor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ThreadLocal<java.lang.Object>entities-
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description HibernateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTransactionCompletion(Transaction tx)int[]findDirty(java.lang.Object o, java.io.Serializable id, java.lang.Object[] arg2, java.lang.Object[] arg3, java.lang.String[] arg4, Type[] arg5)booleanonCollectionRecreate(java.lang.Object collection, java.io.Serializable key)booleanonCollectionRemove(java.lang.Object collection, java.io.Serializable key)booleanonCollectionUpdate(java.lang.Object collection, java.io.Serializable key)booleanonSave(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, Type[] types)-
Methods inherited from class org.hibernate.EmptyInterceptor
afterTransactionBegin, beforeTransactionCompletion, getEntity, getEntityName, instantiate, isTransient, onDelete, onFlushDirty, onLoad, onPrepareStatement, postFlush, preFlush
-
-
-
-
Method Detail
-
findDirty
public int[] findDirty(java.lang.Object o, java.io.Serializable id, java.lang.Object[] arg2, java.lang.Object[] arg3, java.lang.String[] arg4, Type[] arg5)- Specified by:
findDirtyin interfaceInterceptor- Overrides:
findDirtyin classEmptyInterceptor
-
onCollectionUpdate
public boolean onCollectionUpdate(java.lang.Object collection, java.io.Serializable key) throws CallbackException- Specified by:
onCollectionUpdatein interfaceInterceptor- Overrides:
onCollectionUpdatein classEmptyInterceptor- Throws:
CallbackException
-
onCollectionRecreate
public boolean onCollectionRecreate(java.lang.Object collection, java.io.Serializable key) throws CallbackException- Specified by:
onCollectionRecreatein interfaceInterceptor- Overrides:
onCollectionRecreatein classEmptyInterceptor- Throws:
CallbackException
-
onCollectionRemove
public boolean onCollectionRemove(java.lang.Object collection, java.io.Serializable key) throws CallbackException- Specified by:
onCollectionRemovein interfaceInterceptor- Overrides:
onCollectionRemovein classEmptyInterceptor- Throws:
CallbackException
-
onSave
public boolean onSave(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, Type[] types)- Specified by:
onSavein interfaceInterceptor- Overrides:
onSavein classEmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(Transaction tx)
- Specified by:
afterTransactionCompletionin interfaceInterceptor- Overrides:
afterTransactionCompletionin classEmptyInterceptor
-
-