Class LoadRequest

java.lang.Object
io.ebeaninternal.api.LoadRequest
Direct Known Subclasses:
LoadBeanRequest, LoadManyRequest

public abstract class LoadRequest extends Object
Request for loading Associated One Beans.
  • Field Details

    • parentRequest

      protected final OrmQueryRequest<?> parentRequest
    • transaction

      protected final Transaction transaction
    • lazy

      protected final boolean lazy
  • Method Details

    • beanType

      public abstract Class<?> beanType()
      Return the associated bean type for this load request.
    • isLazy

      public boolean isLazy()
      Return true if this is a lazy load and false if it is a secondary query.
    • transaction

      public Transaction transaction()
      Return the transaction to use if this is a secondary query.

      Lazy loading queries run in their own transaction.

    • isParentFindIterate

      public boolean isParentFindIterate()
      Return true if the parent query is a findIterate() type query. So one of - findIterate(), findEach(), findEachWhile() or findVisit().