public abstract class BeanPersistAdapter extends Object implements BeanPersistController
A BeanPersistAdapter is either found automatically via class path search or
can be added programmatically via
ServerConfig.add(BeanPersistController) or
ServerConfig.setPersistControllers(java.util.List).
| Constructor and Description |
|---|
BeanPersistAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getExecutionOrder()
Returns 10 - override this to control the order in which
BeanPersistController's are executed when there is multiple of them
registered for a given entity type (class).
|
abstract boolean |
isRegisterFor(Class<?> cls)
Return true if this BeanPersistController should be registered for events
on this entity type.
|
void |
postDelete(BeanPersistRequest<?> request)
Does nothing by default.
|
void |
postInsert(BeanPersistRequest<?> request)
Does nothing by default.
|
void |
postSoftDelete(BeanPersistRequest<?> request)
Does nothing by default.
|
void |
postUpdate(BeanPersistRequest<?> request)
Does nothing by default.
|
void |
preDelete(BeanDeleteIdRequest request)
Does nothing by default.
|
boolean |
preDelete(BeanPersistRequest<?> request)
Returns true indicating normal processing should continue.
|
boolean |
preInsert(BeanPersistRequest<?> request)
Returns true indicating normal processing should continue.
|
boolean |
preSoftDelete(BeanPersistRequest<?> request)
Returns true indicating normal processing should continue.
|
boolean |
preUpdate(BeanPersistRequest<?> request)
Returns true indicating normal processing should continue.
|
public BeanPersistAdapter()
public abstract boolean isRegisterFor(Class<?> cls)
BeanPersistControllerisRegisterFor in interface BeanPersistControllerpublic int getExecutionOrder()
getExecutionOrder in interface BeanPersistControllerpublic boolean preDelete(BeanPersistRequest<?> request)
preDelete in interface BeanPersistControllerpublic boolean preInsert(BeanPersistRequest<?> request)
preInsert in interface BeanPersistControllerpublic boolean preUpdate(BeanPersistRequest<?> request)
preUpdate in interface BeanPersistControllerpublic boolean preSoftDelete(BeanPersistRequest<?> request)
preSoftDelete in interface BeanPersistControllerpublic void postDelete(BeanPersistRequest<?> request)
postDelete in interface BeanPersistControllerpublic void postInsert(BeanPersistRequest<?> request)
postInsert in interface BeanPersistControllerpublic void postUpdate(BeanPersistRequest<?> request)
postUpdate in interface BeanPersistControllerpublic void postSoftDelete(BeanPersistRequest<?> request)
postSoftDelete in interface BeanPersistControllerpublic void preDelete(BeanDeleteIdRequest request)
preDelete in interface BeanPersistControllerCopyright © 2019. All rights reserved.