Class PersistenceEventOBInterceptor

  • All Implemented Interfaces:
    Serializable, org.hibernate.Interceptor

    @ApplicationScoped
    public class PersistenceEventOBInterceptor
    extends org.hibernate.EmptyInterceptor
    The interceptor which listens to persistence events and passes them on to observers.
    Author:
    mtaal
    See Also:
    Serialized Form
    • Constructor Detail

      • PersistenceEventOBInterceptor

        public PersistenceEventOBInterceptor()
    • Method Detail

      • onDelete

        public void onDelete​(Object entity,
                             Serializable id,
                             Object[] state,
                             String[] propertyNames,
                             org.hibernate.type.Type[] types)
        Specified by:
        onDelete in interface org.hibernate.Interceptor
        Overrides:
        onDelete in class org.hibernate.EmptyInterceptor
      • onFlushDirty

        public boolean onFlushDirty​(Object entity,
                                    Serializable id,
                                    Object[] currentState,
                                    Object[] previousState,
                                    String[] propertyNames,
                                    org.hibernate.type.Type[] types)
        Specified by:
        onFlushDirty in interface org.hibernate.Interceptor
        Overrides:
        onFlushDirty in class org.hibernate.EmptyInterceptor
      • onSave

        public boolean onSave​(Object entity,
                              Serializable id,
                              Object[] state,
                              String[] propertyNames,
                              org.hibernate.type.Type[] types)
        Specified by:
        onSave in interface org.hibernate.Interceptor
        Overrides:
        onSave in class org.hibernate.EmptyInterceptor
      • afterTransactionBegin

        public void afterTransactionBegin​(org.hibernate.Transaction tx)
        Specified by:
        afterTransactionBegin in interface org.hibernate.Interceptor
        Overrides:
        afterTransactionBegin 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