Class ChainedBeanPersistController
java.lang.Object
io.ebeaninternal.server.deploy.ChainedBeanPersistController
- All Implemented Interfaces:
io.ebean.event.BeanPersistController
public final class ChainedBeanPersistController
extends Object
implements io.ebean.event.BeanPersistController
Chains multiple BeanPersistController's together.
Used when multiple BeanPersistController register for the same bean type.
-
Constructor Summary
ConstructorsConstructorDescriptionChainedBeanPersistController(io.ebean.event.BeanPersistController c1, io.ebean.event.BeanPersistController c2) Construct adding 2 BeanPersistController's.ChainedBeanPersistController(List<io.ebean.event.BeanPersistController> list) Construct given the list of BeanPersistController's. -
Method Summary
Modifier and TypeMethodDescriptionderegister(io.ebean.event.BeanPersistController c) De-register a BeanPersistController and return the resulting chain.intAlways returns 0 (not used for this object).booleanisRegisterFor(Class<?> cls) Always returns false (not used for this object).voidpostDelete(io.ebean.event.BeanPersistRequest<?> request) voidpostInsert(io.ebean.event.BeanPersistRequest<?> request) voidpostSoftDelete(io.ebean.event.BeanPersistRequest<?> request) voidpostUpdate(io.ebean.event.BeanPersistRequest<?> request) voidpreDelete(io.ebean.event.BeanDeleteIdRequest request) booleanpreDelete(io.ebean.event.BeanPersistRequest<?> request) booleanpreInsert(io.ebean.event.BeanPersistRequest<?> request) booleanpreSoftDelete(io.ebean.event.BeanPersistRequest<?> request) booleanpreUpdate(io.ebean.event.BeanPersistRequest<?> request) register(io.ebean.event.BeanPersistController c) Register a new BeanPersistController and return the resulting chain.
-
Constructor Details
-
ChainedBeanPersistController
public ChainedBeanPersistController(io.ebean.event.BeanPersistController c1, io.ebean.event.BeanPersistController c2) Construct adding 2 BeanPersistController's. -
ChainedBeanPersistController
Construct given the list of BeanPersistController's.
-
-
Method Details
-
register
Register a new BeanPersistController and return the resulting chain. -
deregister
De-register a BeanPersistController and return the resulting chain. -
getExecutionOrder
public int getExecutionOrder()Always returns 0 (not used for this object).- Specified by:
getExecutionOrderin interfaceio.ebean.event.BeanPersistController
-
isRegisterFor
Always returns false (not used for this object).- Specified by:
isRegisterForin interfaceio.ebean.event.BeanPersistController
-
postDelete
public void postDelete(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
postDeletein interfaceio.ebean.event.BeanPersistController
-
postInsert
public void postInsert(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
postInsertin interfaceio.ebean.event.BeanPersistController
-
postUpdate
public void postUpdate(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
postUpdatein interfaceio.ebean.event.BeanPersistController
-
postSoftDelete
public void postSoftDelete(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
postSoftDeletein interfaceio.ebean.event.BeanPersistController
-
preDelete
public boolean preDelete(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
preDeletein interfaceio.ebean.event.BeanPersistController
-
preSoftDelete
public boolean preSoftDelete(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
preSoftDeletein interfaceio.ebean.event.BeanPersistController
-
preDelete
public void preDelete(io.ebean.event.BeanDeleteIdRequest request) - Specified by:
preDeletein interfaceio.ebean.event.BeanPersistController
-
preInsert
public boolean preInsert(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
preInsertin interfaceio.ebean.event.BeanPersistController
-
preUpdate
public boolean preUpdate(io.ebean.event.BeanPersistRequest<?> request) - Specified by:
preUpdatein interfaceio.ebean.event.BeanPersistController
-