Class PersistenceObjectInterceptor

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

    public class PersistenceObjectInterceptor
    extends org.hibernate.EmptyInterceptor
    Takes care about updating the last modified date of a persistence object
    Since:
    6.9
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Constructor Detail

      • PersistenceObjectInterceptor

        public PersistenceObjectInterceptor()
    • Method Detail

      • 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[] currentState,
                              String[] propertyNames,
                              org.hibernate.type.Type[] types)
        Specified by:
        onSave in interface org.hibernate.Interceptor
        Overrides:
        onSave in class org.hibernate.EmptyInterceptor