org.riotfamily.riot.hibernate.interceptor
Class ChainedInterceptor
java.lang.Object
org.hibernate.EmptyInterceptor
org.riotfamily.riot.hibernate.interceptor.ChainedInterceptor
- All Implemented Interfaces:
- Serializable, org.hibernate.Interceptor
public class ChainedInterceptor
- extends org.hibernate.EmptyInterceptor
Hibernate Interceptor that allows the chaining of multiple
implementations.
- Since:
- 8.0
- Author:
- Felix Gnass [fgnass at neteye dot de]
- See Also:
- Serialized Form
| Fields inherited from class org.hibernate.EmptyInterceptor |
INSTANCE |
|
Method Summary |
void |
afterTransactionBegin(org.hibernate.Transaction tx)
|
void |
afterTransactionCompletion(org.hibernate.Transaction tx)
|
void |
beforeTransactionCompletion(org.hibernate.Transaction tx)
|
Boolean |
isTransient(Object entity)
|
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)
|
void |
setInterceptors(Set<org.hibernate.Interceptor> interceptors)
|
| Methods inherited from class org.hibernate.EmptyInterceptor |
findDirty, getEntity, getEntityName, instantiate, onCollectionRecreate, onCollectionRemove, onCollectionUpdate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedInterceptor
public ChainedInterceptor()
setInterceptors
public void setInterceptors(Set<org.hibernate.Interceptor> interceptors)
onDelete
public void onDelete(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types)
- Specified by:
onDelete in interface org.hibernate.Interceptor- Overrides:
onDelete in class org.hibernate.EmptyInterceptor
onLoad
public boolean onLoad(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types)
- Specified by:
onLoad in interface org.hibernate.Interceptor- Overrides:
onLoad in class org.hibernate.EmptyInterceptor
postFlush
public void postFlush(Iterator entities)
- Specified by:
postFlush in interface org.hibernate.Interceptor- Overrides:
postFlush in class org.hibernate.EmptyInterceptor
preFlush
public void preFlush(Iterator entities)
- Specified by:
preFlush in interface org.hibernate.Interceptor- Overrides:
preFlush in class org.hibernate.EmptyInterceptor
isTransient
public Boolean isTransient(Object entity)
- Specified by:
isTransient in interface org.hibernate.Interceptor- Overrides:
isTransient in class org.hibernate.EmptyInterceptor
afterTransactionBegin
public void afterTransactionBegin(org.hibernate.Transaction tx)
- Specified by:
afterTransactionBegin in interface org.hibernate.Interceptor- Overrides:
afterTransactionBegin in class org.hibernate.EmptyInterceptor
afterTransactionCompletion
public void afterTransactionCompletion(org.hibernate.Transaction tx)
- Specified by:
afterTransactionCompletion in interface org.hibernate.Interceptor- Overrides:
afterTransactionCompletion in class org.hibernate.EmptyInterceptor
beforeTransactionCompletion
public void beforeTransactionCompletion(org.hibernate.Transaction tx)
- Specified by:
beforeTransactionCompletion in interface org.hibernate.Interceptor- Overrides:
beforeTransactionCompletion in class org.hibernate.EmptyInterceptor
onPrepareStatement
public String onPrepareStatement(String sql)
- Specified by:
onPrepareStatement in interface org.hibernate.Interceptor- Overrides:
onPrepareStatement in class org.hibernate.EmptyInterceptor
onSave
public boolean onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types)
throws org.hibernate.CallbackException
- Specified by:
onSave in interface org.hibernate.Interceptor- Overrides:
onSave in class org.hibernate.EmptyInterceptor
- Throws:
org.hibernate.CallbackException
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