public class Interceptor
extends org.hibernate.EmptyInterceptor
implements net.e6tech.elements.persist.PersistenceInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected net.e6tech.elements.common.notification.NotificationCenter |
center |
protected net.e6tech.elements.common.resources.Resources |
resources |
protected org.hibernate.engine.spi.SessionFactoryImplementor |
sessionFactory |
| Constructor and Description |
|---|
Interceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(net.e6tech.elements.common.resources.Resources resources) |
net.e6tech.elements.common.resources.Resources |
getResources() |
void |
onCollectionRemove(java.lang.Object collection,
java.io.Serializable key) |
void |
onCollectionUpdate(java.lang.Object collection,
java.io.Serializable key) |
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) |
boolean |
onSave(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types) |
void |
preFlush(java.util.Iterator entities) |
protected void |
publishCollectionChanged(java.lang.Object collection) |
protected void |
publishEntityChanged(java.lang.Object entity,
java.io.Serializable key) |
void |
setResources(net.e6tech.elements.common.resources.Resources resources) |
@Inject(optional=true) protected transient net.e6tech.elements.common.resources.Resources resources
@Inject(optional=true) protected transient org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory
@Inject(optional=true) protected transient net.e6tech.elements.common.notification.NotificationCenter center
public net.e6tech.elements.common.resources.Resources getResources()
public void setResources(net.e6tech.elements.common.resources.Resources resources)
setResources in interface net.e6tech.elements.persist.PersistenceInterceptorpublic void cleanup(net.e6tech.elements.common.resources.Resources resources)
cleanup in interface net.e6tech.elements.persist.PersistenceInterceptorpublic 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.EmptyInterceptorpublic boolean onLoad(java.lang.Object entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
onLoad in interface org.hibernate.InterceptoronLoad 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 void preFlush(java.util.Iterator entities)
preFlush in interface org.hibernate.InterceptorpreFlush in class org.hibernate.EmptyInterceptorpublic void onCollectionUpdate(java.lang.Object collection,
java.io.Serializable key)
onCollectionUpdate in interface org.hibernate.InterceptoronCollectionUpdate in class org.hibernate.EmptyInterceptorpublic void onCollectionRemove(java.lang.Object collection,
java.io.Serializable key)
onCollectionRemove in interface org.hibernate.InterceptoronCollectionRemove in class org.hibernate.EmptyInterceptorprotected void publishCollectionChanged(java.lang.Object collection)
protected void publishEntityChanged(java.lang.Object entity,
java.io.Serializable key)