public class CompositeInterceptor extends Object implements org.hibernate.Interceptor
| Constructor and Description |
|---|
CompositeInterceptor(List<org.hibernate.Interceptor> delegates) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTransactionBegin(org.hibernate.Transaction tx) |
void |
afterTransactionCompletion(org.hibernate.Transaction tx) |
void |
beforeTransactionCompletion(org.hibernate.Transaction tx) |
int[] |
findDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types) |
Object |
getEntity(String entityName,
Serializable id) |
String |
getEntityName(Object object) |
Object |
instantiate(String entityName,
org.hibernate.EntityMode entityMode,
Serializable id) |
Boolean |
isTransient(Object entity) |
void |
onCollectionRecreate(Object collection,
Serializable key) |
void |
onCollectionRemove(Object collection,
Serializable key) |
void |
onCollectionUpdate(Object collection,
Serializable key) |
void |
onDelete(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types) |
boolean |
onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types) |
boolean |
onLoad(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types) |
String |
onPrepareStatement(String sql) |
boolean |
onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types) |
void |
postFlush(Iterator entities) |
void |
preFlush(Iterator entities) |
public CompositeInterceptor(List<org.hibernate.Interceptor> delegates)
public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onLoad in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onFlushDirty in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onSave in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onDelete in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onCollectionRecreate(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionRecreate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onCollectionRemove(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionRemove in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void onCollectionUpdate(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionUpdate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void preFlush(Iterator entities) throws org.hibernate.CallbackException
preFlush in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void postFlush(Iterator entities) throws org.hibernate.CallbackException
postFlush in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic Boolean isTransient(Object entity)
isTransient in interface org.hibernate.Interceptorpublic int[] findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
findDirty in interface org.hibernate.Interceptorpublic Object instantiate(String entityName, org.hibernate.EntityMode entityMode, Serializable id) throws org.hibernate.CallbackException
instantiate in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic String getEntityName(Object object) throws org.hibernate.CallbackException
getEntityName in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic Object getEntity(String entityName, Serializable id) throws org.hibernate.CallbackException
getEntity in interface org.hibernate.Interceptororg.hibernate.CallbackExceptionpublic void afterTransactionBegin(org.hibernate.Transaction tx)
afterTransactionBegin in interface org.hibernate.Interceptorpublic void beforeTransactionCompletion(org.hibernate.Transaction tx)
beforeTransactionCompletion in interface org.hibernate.Interceptorpublic void afterTransactionCompletion(org.hibernate.Transaction tx)
afterTransactionCompletion in interface org.hibernate.InterceptorCopyright © 2003–2017 Atlassian. All rights reserved.