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 Details

    • interceptors

      protected List<org.hibernate.Interceptor> 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:
      onLoad in interface org.hibernate.Interceptor
      Overrides:
      onLoad in class org.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:
      onFlushDirty in interface org.hibernate.Interceptor
      Overrides:
      onFlushDirty in class org.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:
      onSave in interface org.hibernate.Interceptor
      Overrides:
      onSave in class org.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:
      onDelete in interface org.hibernate.Interceptor
      Overrides:
      onDelete in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • onCollectionRecreate

      public void onCollectionRecreate​(Object collection, Serializable key) throws org.hibernate.CallbackException
      Specified by:
      onCollectionRecreate in interface org.hibernate.Interceptor
      Overrides:
      onCollectionRecreate in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • onCollectionRemove

      public void onCollectionRemove​(Object collection, Serializable key) throws org.hibernate.CallbackException
      Specified by:
      onCollectionRemove in interface org.hibernate.Interceptor
      Overrides:
      onCollectionRemove in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • onCollectionUpdate

      public void onCollectionUpdate​(Object collection, Serializable key) throws org.hibernate.CallbackException
      Specified by:
      onCollectionUpdate in interface org.hibernate.Interceptor
      Overrides:
      onCollectionUpdate in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • preFlush

      public void preFlush​(Iterator entities) throws org.hibernate.CallbackException
      Specified by:
      preFlush in interface org.hibernate.Interceptor
      Overrides:
      preFlush in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • postFlush

      public void postFlush​(Iterator entities) throws org.hibernate.CallbackException
      Specified by:
      postFlush in interface org.hibernate.Interceptor
      Overrides:
      postFlush in class org.hibernate.EmptyInterceptor
      Throws:
      org.hibernate.CallbackException
    • afterTransactionBegin

      public void afterTransactionBegin​(org.hibernate.Transaction tx)
      Specified by:
      afterTransactionBegin in interface org.hibernate.Interceptor
      Overrides:
      afterTransactionBegin in class org.hibernate.EmptyInterceptor
    • beforeTransactionCompletion

      public void beforeTransactionCompletion​(org.hibernate.Transaction tx)
      Specified by:
      beforeTransactionCompletion in interface org.hibernate.Interceptor
      Overrides:
      beforeTransactionCompletion in class org.hibernate.EmptyInterceptor
    • afterTransactionCompletion

      public void afterTransactionCompletion​(org.hibernate.Transaction tx)
      Specified by:
      afterTransactionCompletion in interface org.hibernate.Interceptor
      Overrides:
      afterTransactionCompletion in class org.hibernate.EmptyInterceptor