edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3SessionInterceptor

java.lang.Object
  extended by org.hibernate.EmptyInterceptor
      extended by 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:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
 
Constructor Summary
Hib3SessionInterceptor()
           
 
Method Summary
 Boolean isTransient(Object entity)
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3SessionInterceptor

public Hib3SessionInterceptor()
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
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)