Package io.jmix.ui.model
Interface BaseCollectionLoader
- All Superinterfaces:
DataLoader
- All Known Subinterfaces:
CollectionLoader<E>,KeyValueCollectionLoader
- All Known Implementing Classes:
CollectionLoaderImpl,KeyValueCollectionLoaderImpl
Root interface of collection loaders.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the container which accepts loaded entities.intThe position of the first instance to load, numbered from 0.intThe maximum number of instances to load.getSort()Returns the sort object which is used when loading.voidsetFirstResult(int firstResult) Sets the position of the first instance to load, numbered from 0.voidsetMaxResults(int maxResults) Sets the maximum number of instances to load.voidSets the sort object which is used when loading.Methods inherited from interface io.jmix.ui.model.DataLoader
getCondition, getDataContext, getHints, getParameter, getParameters, getQuery, load, removeParameter, setCondition, setDataContext, setHint, setParameter, setParameters, setQuery
-
Method Details
-
getContainer
CollectionContainer getContainer()Returns the container which accepts loaded entities.- Specified by:
getContainerin interfaceDataLoader
-
getFirstResult
int getFirstResult()The position of the first instance to load, numbered from 0. Returns 0 ifsetFirstResult(int)was not called. -
setFirstResult
void setFirstResult(int firstResult) Sets the position of the first instance to load, numbered from 0. -
getMaxResults
int getMaxResults()The maximum number of instances to load. ReturnsInteger.MAX_VALUEifsetMaxResults(int)was not called. -
setMaxResults
void setMaxResults(int maxResults) Sets the maximum number of instances to load. -
getSort
Returns the sort object which is used when loading. -
setSort
Sets the sort object which is used when loading.
-