com.jtri.events
Class JTriInterceptor
java.lang.Object
org.hibernate.EmptyInterceptor
com.jtri.events.JTriInterceptor
- All Implemented Interfaces:
- org.hibernate.Interceptor, java.io.Serializable
- public class JTriInterceptor
- extends org.hibernate.EmptyInterceptor
- implements org.hibernate.Interceptor, java.io.Serializable
This implements Hibernate's interceptor interface to register several
interfaces associated with an specific class.
- Author:
- atorres
- See Also:
- Serialized Form
| Fields inherited from class org.hibernate.EmptyInterceptor |
INSTANCE |
|
Method Summary |
int[] |
findDirty(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
java.util.Hashtable |
getInterceptors()
|
org.hibernate.Session |
getSession()
|
void |
onDelete(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onFlushDirty(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onLoad(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onSave(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
void |
postFlush(java.util.Iterator arg0)
|
void |
preFlush(java.util.Iterator arg0)
|
void |
registerInterceptor(java.lang.Class clazz,
org.hibernate.Interceptor subint)
|
void |
setSession(org.hibernate.Session session)
|
void |
unregisterInterceptor(java.lang.Class clazz)
|
| Methods inherited from class org.hibernate.EmptyInterceptor |
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, getEntity, getEntityName, instantiate, isTransient |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.Interceptor |
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, getEntity, getEntityName, instantiate, isTransient |
JTriInterceptor
public JTriInterceptor()
registerInterceptor
public void registerInterceptor(java.lang.Class clazz,
org.hibernate.Interceptor subint)
getInterceptors
public java.util.Hashtable getInterceptors()
unregisterInterceptor
public void unregisterInterceptor(java.lang.Class clazz)
onLoad
public boolean onLoad(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
throws org.hibernate.CallbackException
- Specified by:
onLoad in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
onFlushDirty
public boolean onFlushDirty(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
throws org.hibernate.CallbackException
- Specified by:
onFlushDirty in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
onSave
public boolean onSave(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
throws org.hibernate.CallbackException
- Specified by:
onSave in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
onDelete
public void onDelete(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
throws org.hibernate.CallbackException
- Specified by:
onDelete in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
findDirty
public int[] findDirty(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
- Specified by:
findDirty in interface org.hibernate.Interceptor
postFlush
public void postFlush(java.util.Iterator arg0)
throws org.hibernate.CallbackException
- Specified by:
postFlush in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
preFlush
public void preFlush(java.util.Iterator arg0)
throws org.hibernate.CallbackException
- Specified by:
preFlush in interface org.hibernate.Interceptor
- Throws:
org.hibernate.CallbackException
getSession
public org.hibernate.Session getSession()
setSession
public void setSession(org.hibernate.Session session)