|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.event.BeanPersistAdapter
public abstract class BeanPersistAdapter
A no operation implementation of BeanPersistController. Objects extending this need to only override the methods they want to.
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 Summary | |
---|---|
BeanPersistAdapter()
|
Method Summary | |
---|---|
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 |
postLoad(Object bean,
Set<String> includedProperties)
Does nothing by default. |
void |
postUpdate(BeanPersistRequest<?> 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 |
preUpdate(BeanPersistRequest<?> request)
Returns true indicating normal processing should continue. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanPersistAdapter()
Method Detail |
---|
public abstract boolean isRegisterFor(Class<?> cls)
BeanPersistController
isRegisterFor
in interface BeanPersistController
public int getExecutionOrder()
getExecutionOrder
in interface BeanPersistController
public boolean preDelete(BeanPersistRequest<?> request)
preDelete
in interface BeanPersistController
public boolean preInsert(BeanPersistRequest<?> request)
preInsert
in interface BeanPersistController
public boolean preUpdate(BeanPersistRequest<?> request)
preUpdate
in interface BeanPersistController
public void postDelete(BeanPersistRequest<?> request)
postDelete
in interface BeanPersistController
public void postInsert(BeanPersistRequest<?> request)
postInsert
in interface BeanPersistController
public void postUpdate(BeanPersistRequest<?> request)
postUpdate
in interface BeanPersistController
public void postLoad(Object bean, Set<String> includedProperties)
postLoad
in interface BeanPersistController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |