Package io.ebeaninternal.api
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.
-
-
Constructor Summary
Constructors Constructor Description LoadRequest(OrmQueryRequest<?> parentRequest, boolean lazy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Class<?>
getBeanType()
Return the associated bean type for this load request.Transaction
getTransaction()
Return the transaction to use if this is a secondary query.boolean
isLazy()
Return true if this is a lazy load and false if it is a secondary query.boolean
isParentFindIterate()
Return true if the parent query is a findIterate() type query.
-
-
-
Constructor Detail
-
LoadRequest
public LoadRequest(OrmQueryRequest<?> parentRequest, boolean lazy)
-
-
Method Detail
-
getBeanType
public abstract Class<?> getBeanType()
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.
-
getTransaction
public Transaction getTransaction()
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().
-
-