Class Hib3SessionInterceptor

java.lang.Object
org.hibernate.EmptyInterceptor
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3SessionInterceptor
All Implemented Interfaces:
Serializable, org.hibernate.Interceptor

public class Hib3SessionInterceptor extends org.hibernate.EmptyInterceptor implements Serializable
hibernate should be able to tell if an assigned key and version are insert or update, but it cant, so tell it
See Also:
  • Field Summary

    Fields inherited from class org.hibernate.EmptyInterceptor

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
     
    boolean
    onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
     

    Methods inherited from class org.hibernate.EmptyInterceptor

    afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush

    Methods inherited from class java.lang.Object

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

    • Hib3SessionInterceptor

      public Hib3SessionInterceptor()
  • Method Details

    • 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
      See Also:
      • EmptyInterceptor.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)
      Specified by:
      onSave in interface org.hibernate.Interceptor
      Overrides:
      onSave in class org.hibernate.EmptyInterceptor
      See Also:
      • EmptyInterceptor.onSave(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])
    • isTransient

      public Boolean isTransient(Object entity)
      Specified by:
      isTransient in interface org.hibernate.Interceptor
      Overrides:
      isTransient in class org.hibernate.EmptyInterceptor
      See Also:
      • EmptyInterceptor.isTransient(java.lang.Object)