public class ChainedBeanPersistController extends Object implements BeanPersistController
| Constructor and Description |
|---|
ChainedBeanPersistController(BeanPersistController c1,
BeanPersistController c2)
Construct adding 2 BeanPersistController's.
|
ChainedBeanPersistController(List<BeanPersistController> list)
Construct given the list of BeanPersistController's.
|
| Modifier and Type | Method and Description |
|---|---|
ChainedBeanPersistController |
deregister(BeanPersistController c)
De-register a BeanPersistController and return the resulting chain.
|
int |
getExecutionOrder()
Always returns 0 (not used for this object).
|
boolean |
isRegisterFor(Class<?> cls)
Always returns false (not used for this object).
|
void |
postDelete(BeanPersistRequest<?> request)
Called after the delete was performed.
|
void |
postInsert(BeanPersistRequest<?> request)
Called after the insert was performed.
|
void |
postLoad(Object bean,
Set<String> includedProperties)
Called after every each bean is fetched and loaded from the database.
|
void |
postUpdate(BeanPersistRequest<?> request)
Called after the update was performed.
|
boolean |
preDelete(BeanPersistRequest<?> request)
Prior to the delete perform some action.
|
boolean |
preInsert(BeanPersistRequest<?> request)
Prior to the insert perform some action.
|
boolean |
preUpdate(BeanPersistRequest<?> request)
Prior to the update perform some action.
|
ChainedBeanPersistController |
register(BeanPersistController c)
Register a new BeanPersistController and return the resulting chain.
|
public ChainedBeanPersistController(BeanPersistController c1, BeanPersistController c2)
public ChainedBeanPersistController(List<BeanPersistController> list)
list - public ChainedBeanPersistController register(BeanPersistController c)
public ChainedBeanPersistController deregister(BeanPersistController c)
public int getExecutionOrder()
getExecutionOrder in interface BeanPersistControllerpublic boolean isRegisterFor(Class<?> cls)
isRegisterFor in interface BeanPersistControllerpublic void postDelete(BeanPersistRequest<?> request)
BeanPersistControllerpostDelete in interface BeanPersistControllerpublic void postInsert(BeanPersistRequest<?> request)
BeanPersistControllerpostInsert in interface BeanPersistControllerpublic void postLoad(Object bean, Set<String> includedProperties)
BeanPersistControllerpostLoad in interface BeanPersistControllerpublic void postUpdate(BeanPersistRequest<?> request)
BeanPersistControllerpostUpdate in interface BeanPersistControllerpublic boolean preDelete(BeanPersistRequest<?> request)
BeanPersistControllerReturn false if you have completely replaced the delete functionality and do not want the default delete to be performed.
preDelete in interface BeanPersistControllerpublic boolean preInsert(BeanPersistRequest<?> request)
BeanPersistControllerReturn false if you have completely replaced the insert functionality and do not want the default insert to be performed.
preInsert in interface BeanPersistControllerpublic boolean preUpdate(BeanPersistRequest<?> request)
BeanPersistControllerReturn false if you have completely replaced the update functionality and do not want the default update to be performed.
preUpdate in interface BeanPersistControllerCopyright © 2014. All Rights Reserved.