@ProviderType
public interface ModelListener<T>
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getModelClass() |
void |
onAfterAddAssociation(Object classPK,
String associationClassName,
Object associationClassPK) |
void |
onAfterCreate(T model) |
void |
onAfterRemove(T model) |
void |
onAfterRemoveAssociation(Object classPK,
String associationClassName,
Object associationClassPK) |
void |
onAfterUpdate(T originalModel,
T model) |
void |
onBeforeAddAssociation(Object classPK,
String associationClassName,
Object associationClassPK) |
void |
onBeforeCreate(T model) |
void |
onBeforeRemove(T model) |
void |
onBeforeRemoveAssociation(Object classPK,
String associationClassName,
Object associationClassPK) |
void |
onBeforeUpdate(T originalModel,
T model) |
Class<?> getModelClass()
void onAfterAddAssociation(Object classPK,
String associationClassName,
Object associationClassPK)
throws ModelListenerException
ModelListenerExceptionvoid onAfterCreate(T model) throws ModelListenerException
ModelListenerExceptionvoid onAfterRemove(T model) throws ModelListenerException
ModelListenerExceptionvoid onAfterRemoveAssociation(Object classPK,
String associationClassName,
Object associationClassPK)
throws ModelListenerException
ModelListenerExceptionvoid onAfterUpdate(T originalModel, T model) throws ModelListenerException
ModelListenerExceptionvoid onBeforeAddAssociation(Object classPK,
String associationClassName,
Object associationClassPK)
throws ModelListenerException
ModelListenerExceptionvoid onBeforeCreate(T model) throws ModelListenerException
ModelListenerExceptionvoid onBeforeRemove(T model) throws ModelListenerException
ModelListenerExceptionvoid onBeforeRemoveAssociation(Object classPK,
String associationClassName,
Object associationClassPK)
throws ModelListenerException
ModelListenerExceptionvoid onBeforeUpdate(T originalModel, T model) throws ModelListenerException
ModelListenerException