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 void
afterTransactionCompletion(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)
boolean
onCollectionRecreate(java.lang.Object collection, java.io.Serializable key)
boolean
onCollectionRemove(java.lang.Object collection, java.io.Serializable key)
boolean
onCollectionUpdate(java.lang.Object collection, java.io.Serializable key)
boolean
onSave(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:
findDirty
in interfaceInterceptor
- Overrides:
findDirty
in classEmptyInterceptor
-
onCollectionUpdate
public boolean onCollectionUpdate(java.lang.Object collection, java.io.Serializable key) throws CallbackException
- Specified by:
onCollectionUpdate
in interfaceInterceptor
- Overrides:
onCollectionUpdate
in classEmptyInterceptor
- Throws:
CallbackException
-
onCollectionRecreate
public boolean onCollectionRecreate(java.lang.Object collection, java.io.Serializable key) throws CallbackException
- Specified by:
onCollectionRecreate
in interfaceInterceptor
- Overrides:
onCollectionRecreate
in classEmptyInterceptor
- Throws:
CallbackException
-
onCollectionRemove
public boolean onCollectionRemove(java.lang.Object collection, java.io.Serializable key) throws CallbackException
- Specified by:
onCollectionRemove
in interfaceInterceptor
- Overrides:
onCollectionRemove
in 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:
onSave
in interfaceInterceptor
- Overrides:
onSave
in classEmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(Transaction tx)
- Specified by:
afterTransactionCompletion
in interfaceInterceptor
- Overrides:
afterTransactionCompletion
in classEmptyInterceptor
-
-