Package pl.matsuo.core.service.db
Class EntityInterceptorService
java.lang.Object
org.hibernate.EmptyInterceptor
pl.matsuo.core.service.db.EntityInterceptorService
- All Implemented Interfaces:
Serializable,org.hibernate.Interceptor
@Service
public class EntityInterceptorService
extends org.hibernate.EmptyInterceptor
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected List<org.hibernate.Interceptor>interceptorsFields inherited from class org.hibernate.EmptyInterceptor
INSTANCE -
Constructor Summary
Constructors Constructor Description EntityInterceptorService() -
Method Summary
Modifier and Type Method Description voidafterTransactionBegin(org.hibernate.Transaction tx)voidafterTransactionCompletion(org.hibernate.Transaction tx)voidbeforeTransactionCompletion(org.hibernate.Transaction tx)voidonCollectionRecreate(Object collection, Serializable key)voidonCollectionRemove(Object collection, Serializable key)voidonCollectionUpdate(Object collection, Serializable key)voidonDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)booleanonFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)booleanonLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)booleanonSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)voidpostFlush(Iterator entities)voidpreFlush(Iterator entities)Methods inherited from class org.hibernate.EmptyInterceptor
findDirty, getEntity, getEntityName, instantiate, isTransient, onPrepareStatement
-
Field Details
-
interceptors
-
-
Constructor Details
-
EntityInterceptorService
public EntityInterceptorService()
-
-
Method Details
-
onLoad
public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException- Specified by:
onLoadin interfaceorg.hibernate.Interceptor- Overrides:
onLoadin classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException- Specified by:
onFlushDirtyin interfaceorg.hibernate.Interceptor- Overrides:
onFlushDirtyin classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException- Specified by:
onSavein interfaceorg.hibernate.Interceptor- Overrides:
onSavein classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onDelete
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException- Specified by:
onDeletein interfaceorg.hibernate.Interceptor- Overrides:
onDeletein classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onCollectionRecreate
public void onCollectionRecreate(Object collection, Serializable key) throws org.hibernate.CallbackException- Specified by:
onCollectionRecreatein interfaceorg.hibernate.Interceptor- Overrides:
onCollectionRecreatein classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onCollectionRemove
public void onCollectionRemove(Object collection, Serializable key) throws org.hibernate.CallbackException- Specified by:
onCollectionRemovein interfaceorg.hibernate.Interceptor- Overrides:
onCollectionRemovein classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
onCollectionUpdate
public void onCollectionUpdate(Object collection, Serializable key) throws org.hibernate.CallbackException- Specified by:
onCollectionUpdatein interfaceorg.hibernate.Interceptor- Overrides:
onCollectionUpdatein classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
preFlush
- Specified by:
preFlushin interfaceorg.hibernate.Interceptor- Overrides:
preFlushin classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
postFlush
- Specified by:
postFlushin interfaceorg.hibernate.Interceptor- Overrides:
postFlushin classorg.hibernate.EmptyInterceptor- Throws:
org.hibernate.CallbackException
-
afterTransactionBegin
public void afterTransactionBegin(org.hibernate.Transaction tx)- Specified by:
afterTransactionBeginin interfaceorg.hibernate.Interceptor- Overrides:
afterTransactionBeginin classorg.hibernate.EmptyInterceptor
-
beforeTransactionCompletion
public void beforeTransactionCompletion(org.hibernate.Transaction tx)- Specified by:
beforeTransactionCompletionin interfaceorg.hibernate.Interceptor- Overrides:
beforeTransactionCompletionin classorg.hibernate.EmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(org.hibernate.Transaction tx)- Specified by:
afterTransactionCompletionin interfaceorg.hibernate.Interceptor- Overrides:
afterTransactionCompletionin classorg.hibernate.EmptyInterceptor
-