public abstract class GenericHandler<T> extends Object implements EntityListener<T>, TransactionListener
| Constructor and Description |
|---|
GenericHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRemove(Serializable id) |
protected abstract void |
doUpdate(Serializable id,
Set<String> updatedProperties) |
void |
onBeginTransaction() |
void |
onCollectionEntityRecreate(Serializable ownerId,
Class<T> ownerClass,
Serializable entityId,
Object entity) |
void |
onCollectionEntityRemove(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Class<?> entityClass) |
void |
onCollectionEntityUpdate(Serializable ownerId,
Class<T> ownerClass,
String collectionPropertyName,
Serializable entityId,
Object entity) |
void |
onCommitTransaction() |
void |
onDelete(Serializable id,
Class<T> clazz) |
void |
onInsert(Serializable id,
T entity) |
protected abstract void |
onNotificationEnd() |
protected abstract boolean |
onNotificationStart() |
void |
onRollbackTransaction() |
void |
onUpdate(Serializable id,
T entity,
String[] modifiedProperties) |
public void onInsert(Serializable id, T entity)
onInsert in interface EntityListener<T>public void onUpdate(Serializable id, T entity, String[] modifiedProperties)
onUpdate in interface EntityListener<T>public void onDelete(Serializable id, Class<T> clazz)
onDelete in interface EntityListener<T>public void onCollectionEntityRecreate(Serializable ownerId, Class<T> ownerClass, Serializable entityId, Object entity)
onCollectionEntityRecreate in interface EntityListener<T>public void onCollectionEntityUpdate(Serializable ownerId, Class<T> ownerClass, String collectionPropertyName, Serializable entityId, Object entity)
onCollectionEntityUpdate in interface EntityListener<T>public void onCollectionEntityRemove(Serializable ownerId, Class<T> ownerClass, String collectionPropertyName, Serializable entityId, Class<?> entityClass)
onCollectionEntityRemove in interface EntityListener<T>public void onBeginTransaction()
onBeginTransaction in interface TransactionListenerpublic void onCommitTransaction()
onCommitTransaction in interface TransactionListenerpublic void onRollbackTransaction()
onRollbackTransaction in interface TransactionListenerprotected abstract boolean onNotificationStart()
protected abstract void doUpdate(Serializable id, Set<String> updatedProperties)
protected abstract void doRemove(Serializable id)
protected abstract void onNotificationEnd()