public class DelegatingSharedRecordInterceptor extends Object implements org.hibernate.Interceptor
ComponentService
.Constructor and Description |
---|
DelegatingSharedRecordInterceptor(ComponentService componentService)
Constructs interceptor and initialize it with given collection of plugins and shared record context
|
Modifier and Type | Method and Description |
---|---|
void |
afterTransactionBegin(org.hibernate.Transaction tx) |
void |
afterTransactionCompletion(org.hibernate.Transaction tx) |
void |
beforeTransactionCompletion(org.hibernate.Transaction tx) |
int[] |
findDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types) |
Object |
getEntity(String entityName,
Serializable id) |
String |
getEntityName(Object object) |
com.whitestein.lsps.model.sharedrecord.SharedRecordPlugin |
getPluginForEntityName(String entityName)
Answer plugin supporting given entity name
|
Collection<com.whitestein.lsps.model.sharedrecord.SharedRecordPlugin> |
getPlugins() |
Object |
instantiate(String entityName,
org.hibernate.EntityMode entityMode,
Serializable id) |
Boolean |
isTransient(Object entity) |
void |
onCollectionRecreate(Object collection,
Serializable key) |
void |
onCollectionRemove(Object collection,
Serializable key) |
void |
onCollectionUpdate(Object collection,
Serializable key) |
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) |
public DelegatingSharedRecordInterceptor(ComponentService componentService)
componentService
- public final Object instantiate(String entityName, org.hibernate.EntityMode entityMode, Serializable id)
instantiate
in interface org.hibernate.Interceptor
public Collection<com.whitestein.lsps.model.sharedrecord.SharedRecordPlugin> getPlugins()
public com.whitestein.lsps.model.sharedrecord.SharedRecordPlugin getPluginForEntityName(String entityName)
entityName
- public String getEntityName(Object object)
getEntityName
in interface org.hibernate.Interceptor
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
onDelete
in interface org.hibernate.Interceptor
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
onFlushDirty
in interface org.hibernate.Interceptor
public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
onLoad
in interface org.hibernate.Interceptor
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
onSave
in interface org.hibernate.Interceptor
public void postFlush(Iterator entities)
postFlush
in interface org.hibernate.Interceptor
public void preFlush(Iterator entities)
preFlush
in interface org.hibernate.Interceptor
public Boolean isTransient(Object entity)
isTransient
in interface org.hibernate.Interceptor
public int[] findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
findDirty
in interface org.hibernate.Interceptor
public Object getEntity(String entityName, Serializable id)
getEntity
in interface org.hibernate.Interceptor
public void afterTransactionBegin(org.hibernate.Transaction tx)
afterTransactionBegin
in interface org.hibernate.Interceptor
public void afterTransactionCompletion(org.hibernate.Transaction tx)
afterTransactionCompletion
in interface org.hibernate.Interceptor
public void beforeTransactionCompletion(org.hibernate.Transaction tx)
beforeTransactionCompletion
in interface org.hibernate.Interceptor
public String onPrepareStatement(String sql)
onPrepareStatement
in interface org.hibernate.Interceptor
public void onCollectionRemove(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionRemove
in interface org.hibernate.Interceptor
org.hibernate.CallbackException
public void onCollectionRecreate(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionRecreate
in interface org.hibernate.Interceptor
org.hibernate.CallbackException
public void onCollectionUpdate(Object collection, Serializable key) throws org.hibernate.CallbackException
onCollectionUpdate
in interface org.hibernate.Interceptor
org.hibernate.CallbackException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.