Class PersistenceEventOBInterceptor
- java.lang.Object
-
- org.hibernate.EmptyInterceptor
-
- org.openbravo.client.kernel.event.PersistenceEventOBInterceptor
-
- All Implemented Interfaces:
Serializable
,org.hibernate.Interceptor
@ApplicationScoped public class PersistenceEventOBInterceptor extends org.hibernate.EmptyInterceptor
The interceptor which listens to persistence events and passes them on to observers.- Author:
- mtaal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistenceEventOBInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTransactionBegin(org.hibernate.Transaction tx)
void
afterTransactionCompletion(org.hibernate.Transaction tx)
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
onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
-
-
-
Method Detail
-
onDelete
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
- Specified by:
onDelete
in interfaceorg.hibernate.Interceptor
- Overrides:
onDelete
in classorg.hibernate.EmptyInterceptor
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
- Specified by:
onFlushDirty
in interfaceorg.hibernate.Interceptor
- Overrides:
onFlushDirty
in classorg.hibernate.EmptyInterceptor
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
- Specified by:
onSave
in interfaceorg.hibernate.Interceptor
- Overrides:
onSave
in classorg.hibernate.EmptyInterceptor
-
afterTransactionBegin
public void afterTransactionBegin(org.hibernate.Transaction tx)
- Specified by:
afterTransactionBegin
in interfaceorg.hibernate.Interceptor
- Overrides:
afterTransactionBegin
in classorg.hibernate.EmptyInterceptor
-
afterTransactionCompletion
public void afterTransactionCompletion(org.hibernate.Transaction tx)
- Specified by:
afterTransactionCompletion
in interfaceorg.hibernate.Interceptor
- Overrides:
afterTransactionCompletion
in classorg.hibernate.EmptyInterceptor
-
-