|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 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 void postDelete(BeanPersistRequest<?> request)
postDelete in interface BeanPersistControllerpublic void postInsert(BeanPersistRequest<?> request)
postInsert in interface BeanPersistControllerpublic 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 | |||||||||