public class EntityListener
extends org.hibernate.EmptyInterceptor
| Constructor and Description |
|---|
EntityListener(java.util.function.Supplier<be.looorent.jflu.publisher.EventPublisher> publisher,
java.util.function.Supplier<org.hibernate.Metamodel> metamodel) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTransactionCompletion(org.hibernate.Transaction tx) |
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 |
onSave(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types) |
public EntityListener(java.util.function.Supplier<be.looorent.jflu.publisher.EventPublisher> publisher,
java.util.function.Supplier<org.hibernate.Metamodel> metamodel)
public void afterTransactionCompletion(org.hibernate.Transaction tx)
afterTransactionCompletion in interface org.hibernate.InterceptorafterTransactionCompletion in class org.hibernate.EmptyInterceptorpublic void onDelete(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
onDelete in interface org.hibernate.InterceptoronDelete in class org.hibernate.EmptyInterceptorpublic boolean onSave(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
onSave in interface org.hibernate.InterceptoronSave in class org.hibernate.EmptyInterceptorpublic 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)
onFlushDirty in interface org.hibernate.InterceptoronFlushDirty in class org.hibernate.EmptyInterceptor