Class ReadOnlyGetMethodEnforcer

  • All Implemented Interfaces:
    org.hibernate.Interceptor

    public class ReadOnlyGetMethodEnforcer
    extends ChainedInterceptorSupport
    • Constructor Detail

      • ReadOnlyGetMethodEnforcer

        public ReadOnlyGetMethodEnforcer()
    • Method Detail

      • 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 ChainedInterceptorSupport
        Throws:
        org.hibernate.CallbackException
        See Also:
        Interceptor.onFlushDirty(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
      • 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 ChainedInterceptorSupport
        Throws:
        org.hibernate.CallbackException
        See Also:
        Interceptor.onSave(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
      • 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 ChainedInterceptorSupport
        Throws:
        org.hibernate.CallbackException
        See Also:
        Interceptor.onDelete(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
      • isEntityCreationAllowed

        public boolean isEntityCreationAllowed​(Object entity,
                                               Object[] state,
                                               String[] propertyNames)