Class AbstractEntityInterceptor
java.lang.Object
org.hibernate.EmptyInterceptor
pl.matsuo.core.service.db.interceptor.AbstractEntityInterceptor
- All Implemented Interfaces:
Serializable,org.hibernate.Interceptor
- Direct Known Subclasses:
AuditTrailInterceptor,IdBucketInterceptor
public abstract class AbstractEntityInterceptor
extends org.hibernate.EmptyInterceptor
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected SessionStatesessionStateFields inherited from class org.hibernate.EmptyInterceptor
INSTANCE -
Constructor Summary
Constructors Constructor Description AbstractEntityInterceptor() -
Method Summary
Modifier and Type Method Description protected <E> EgetValue(Object[] currentState, String[] propertyNames, String propertyToGet)booleanonFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)booleanonSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)protected voidsetValue(Object[] currentState, String[] propertyNames, String propertyToSet, Supplier<Object> valueProvider)Methods inherited from class org.hibernate.EmptyInterceptor
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush
-
Field Details
-
sessionState
-
-
Constructor Details
-
AbstractEntityInterceptor
public AbstractEntityInterceptor()
-
-
Method Details
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)- Specified by:
onFlushDirtyin interfaceorg.hibernate.Interceptor- Overrides:
onFlushDirtyin classorg.hibernate.EmptyInterceptor
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)- Specified by:
onSavein interfaceorg.hibernate.Interceptor- Overrides:
onSavein classorg.hibernate.EmptyInterceptor
-
setValue
-
getValue
-