public class MultiEntityInterceptor
extends java.lang.Object
implements org.hibernate.Interceptor
| Constructor and Description |
|---|
MultiEntityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.hibernate.Interceptor interceptor) |
void |
afterTransactionBegin(org.hibernate.Transaction transaction) |
void |
afterTransactionCompletion(org.hibernate.Transaction transaction) |
void |
beforeTransactionCompletion(org.hibernate.Transaction transaction) |
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.lang.Object |
getEntity(java.lang.String entityClass,
java.io.Serializable id) |
java.lang.String |
getEntityName(java.lang.Object entity) |
java.lang.Object |
instantiate(java.lang.String entityName,
org.hibernate.EntityMode entityMode,
java.io.Serializable id) |
java.lang.Boolean |
isTransient(java.lang.Object entity) |
void |
onCollectionRecreate(java.lang.Object entity,
java.io.Serializable id) |
void |
onCollectionRemove(java.lang.Object entity,
java.io.Serializable id) |
void |
onCollectionUpdate(java.lang.Object entity,
java.io.Serializable id) |
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) |
java.lang.String |
onPrepareStatement(java.lang.String entityName) |
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 iterator) |
void |
preFlush(java.util.Iterator iterator) |
public void addInterceptors(org.hibernate.Interceptor interceptor)
public void afterTransactionBegin(org.hibernate.Transaction transaction)
afterTransactionBegin in interface org.hibernate.Interceptorpublic void afterTransactionCompletion(org.hibernate.Transaction transaction)
afterTransactionCompletion in interface org.hibernate.Interceptorpublic void beforeTransactionCompletion(org.hibernate.Transaction transaction)
beforeTransactionCompletion in interface org.hibernate.Interceptorpublic 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)
findDirty in interface org.hibernate.Interceptorpublic java.lang.Object getEntity(java.lang.String entityClass,
java.io.Serializable id)
throws org.hibernate.CallbackException
getEntity in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic java.lang.String getEntityName(java.lang.Object entity)
throws org.hibernate.CallbackException
getEntityName in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic java.lang.Object instantiate(java.lang.String entityName,
org.hibernate.EntityMode entityMode,
java.io.Serializable id)
throws org.hibernate.CallbackException
instantiate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic java.lang.Boolean isTransient(java.lang.Object entity)
isTransient in interface org.hibernate.Interceptorpublic void onCollectionRecreate(java.lang.Object entity,
java.io.Serializable id)
throws org.hibernate.CallbackException
onCollectionRecreate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onCollectionRemove(java.lang.Object entity,
java.io.Serializable id)
throws org.hibernate.CallbackException
onCollectionRemove in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onCollectionUpdate(java.lang.Object entity,
java.io.Serializable id)
throws org.hibernate.CallbackException
onCollectionUpdate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic 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
onDelete in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic 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
onFlushDirty in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic 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
onLoad in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic java.lang.String onPrepareStatement(java.lang.String entityName)
onPrepareStatement in interface org.hibernate.Interceptorpublic 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
onSave in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void postFlush(java.util.Iterator iterator)
throws org.hibernate.CallbackException
postFlush in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void preFlush(java.util.Iterator iterator)
throws org.hibernate.CallbackException
preFlush in interface org.hibernate.Interceptororg.hibernate.CallbackException