Class ValidationInterceptor

java.lang.Object
org.hibernate.EmptyInterceptor
ch.tocco.nice2.persist.core.impl.hibernate.validation.ValidationInterceptor
All Implemented Interfaces:
Serializable, org.hibernate.Interceptor

public class ValidationInterceptor extends org.hibernate.EmptyInterceptor
Interceptor that validates entities upon save and update (flush).
See Also:
  • Field Summary

    Fields inherited from class org.hibernate.EmptyInterceptor

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isDirty(Entity entity)
     
    void
    preFlush(Iterator entities)
     

    Methods inherited from class org.hibernate.EmptyInterceptor

    afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onLoad, onPrepareStatement, onSave, postFlush

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • preFlush

      public void preFlush(Iterator entities)
      Specified by:
      preFlush in interface org.hibernate.Interceptor
      Overrides:
      preFlush in class org.hibernate.EmptyInterceptor
    • isDirty

      protected boolean isDirty(Entity entity)