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 Details

    • ChainedBeanPersistController

      public ChainedBeanPersistController(io.ebean.event.BeanPersistController c1, io.ebean.event.BeanPersistController c2)
      Construct adding 2 BeanPersistController's.
    • ChainedBeanPersistController

      public ChainedBeanPersistController(List<io.ebean.event.BeanPersistController> list)
      Construct given the list of BeanPersistController's.
  • Method Details

    • register

      public ChainedBeanPersistController register(io.ebean.event.BeanPersistController c)
      Register a new BeanPersistController and return the resulting chain.
    • deregister

      public ChainedBeanPersistController deregister(io.ebean.event.BeanPersistController c)
      De-register a BeanPersistController and return the resulting chain.
    • getExecutionOrder

      public int getExecutionOrder()
      Always returns 0 (not used for this object).
      Specified by:
      getExecutionOrder in interface io.ebean.event.BeanPersistController
    • isRegisterFor

      public boolean isRegisterFor(Class<?> cls)
      Always returns false (not used for this object).
      Specified by:
      isRegisterFor in interface io.ebean.event.BeanPersistController
    • postDelete

      public void postDelete(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      postDelete in interface io.ebean.event.BeanPersistController
    • postInsert

      public void postInsert(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      postInsert in interface io.ebean.event.BeanPersistController
    • postUpdate

      public void postUpdate(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      postUpdate in interface io.ebean.event.BeanPersistController
    • postSoftDelete

      public void postSoftDelete(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      postSoftDelete in interface io.ebean.event.BeanPersistController
    • preDelete

      public boolean preDelete(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      preDelete in interface io.ebean.event.BeanPersistController
    • preSoftDelete

      public boolean preSoftDelete(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      preSoftDelete in interface io.ebean.event.BeanPersistController
    • preDelete

      public void preDelete(io.ebean.event.BeanDeleteIdRequest request)
      Specified by:
      preDelete in interface io.ebean.event.BeanPersistController
    • preInsert

      public boolean preInsert(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      preInsert in interface io.ebean.event.BeanPersistController
    • preUpdate

      public boolean preUpdate(io.ebean.event.BeanPersistRequest<?> request)
      Specified by:
      preUpdate in interface io.ebean.event.BeanPersistController