Package io.ebeaninternal.api
Class LoadBeanRequest
- java.lang.Object
-
- io.ebeaninternal.api.LoadRequest
-
- io.ebeaninternal.api.LoadBeanRequest
-
public class LoadBeanRequest extends LoadRequest
Request for loading ManyToOne and OneToOne relationships.
-
-
Constructor Summary
Constructors Constructor Description LoadBeanRequest(LoadBeanBuffer LoadBuffer, EntityBeanIntercept ebi, boolean loadCache)
Construct for lazy load request.LoadBeanRequest(LoadBeanBuffer LoadBuffer, OrmQueryRequest<?> parentRequest)
Construct for secondary query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureQuery(SpiQuery<?> query, List<Object> idList)
Configure the query for lazy loading execution.List<EntityBeanIntercept>
getBatch()
Return the batch of beans to actually load.int
getBatchSize()
Class<?>
getBeanType()
Return the associated bean type for this load request.String
getDescription()
List<Object>
getIdList()
Return the list of Id values for the beans in the lazy load buffer.boolean
isLoadedFromCache()
Return true if the beans invoking lazy loading were previously loaded from cache.void
postLoad(List<?> list)
Load the beans into the L2 cache if that is requested and check for load failures due to deletes.-
Methods inherited from class io.ebeaninternal.api.LoadRequest
getTransaction, isLazy, isParentFindIterate
-
-
-
-
Constructor Detail
-
LoadBeanRequest
public LoadBeanRequest(LoadBeanBuffer LoadBuffer, EntityBeanIntercept ebi, boolean loadCache)
Construct for lazy load request.
-
LoadBeanRequest
public LoadBeanRequest(LoadBeanBuffer LoadBuffer, 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
-
isLoadedFromCache
public boolean isLoadedFromCache()
Return true if the beans invoking lazy loading were previously loaded from cache.
-
getDescription
public String getDescription()
-
getBatch
public List<EntityBeanIntercept> getBatch()
Return the batch of beans to actually load.
-
getBatchSize
public int getBatchSize()
-
getIdList
public List<Object> getIdList()
Return the list of Id values for the beans in the lazy load buffer.
-
configureQuery
public void configureQuery(SpiQuery<?> query, List<Object> idList)
Configure the query for lazy loading execution.
-
-