Package io.ebeaninternal.api
Class LoadManyRequest
- java.lang.Object
-
- io.ebeaninternal.api.LoadRequest
-
- io.ebeaninternal.api.LoadManyRequest
-
public class LoadManyRequest extends LoadRequest
Request for loading Associated Many Beans.
-
-
Constructor Summary
Constructors Constructor Description LoadManyRequest(LoadManyBuffer loadContext, boolean onlyIds, boolean loadCache)
Construct for lazy loading.LoadManyRequest(LoadManyBuffer loadContext, OrmQueryRequest<?> parentRequest)
Construct for secondary query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpiQuery<?>
createQuery(SpiEbeanServer server)
List<BeanCollection<?>>
getBatch()
Return the batch of collections to actually load.int
getBatchSize()
Return the batch size used for this load context.Class<?>
getBeanType()
Return the associated bean type for this load request.String
getDescription()
void
postLoad()
After the query execution check for empty collections and load L2 cache if desired.-
Methods inherited from class io.ebeaninternal.api.LoadRequest
getTransaction, isLazy, isParentFindIterate
-
-
-
-
Constructor Detail
-
LoadManyRequest
public LoadManyRequest(LoadManyBuffer loadContext, boolean onlyIds, boolean loadCache)
Construct for lazy loading.
-
LoadManyRequest
public LoadManyRequest(LoadManyBuffer loadContext, OrmQueryRequest<?> parentRequest)
Construct for secondary query.
-
-
Method Detail
-
getBeanType
public Class<?> getBeanType()
Description copied from class:LoadRequest
Return the associated bean type for this load request.- Specified by:
getBeanType
in classLoadRequest
-
getDescription
public String getDescription()
-
getBatch
public List<BeanCollection<?>> getBatch()
Return the batch of collections to actually load.
-
getBatchSize
public int getBatchSize()
Return the batch size used for this load context.
-
createQuery
public SpiQuery<?> createQuery(SpiEbeanServer server)
-
postLoad
public void postLoad()
After the query execution check for empty collections and load L2 cache if desired.
-
-