Package io.jmix.core
Class FluentValueLoader<T>
java.lang.Object
io.jmix.core.FluentValueLoader<T>
@Component("core_FluentValueLoader")
@Scope("prototype")
public class FluentValueLoader<T>
extends Object
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.jmix.core.AbstractFluentValueLoaderaccessConstraints(List<AccessConstraint<?>> accessConstraints) Sets access constraints.protected ValueLoadContextfirstResult(int firstResult) Sets results offset.hint(String hintName, Serializable value) Sets custom hint that should be used by the query.hints(Map<String, Serializable> hints) Sets custom hints that should be used by the query.protected ValueLoadContextio.jmix.core.AbstractFluentValueLoaderjoinTransaction(boolean join) list()Loads a list of entities.lockMode(jakarta.persistence.LockModeType lockMode) Sets a lock mode to be used when executing query.maxResults(int maxResults) Sets results limit.one()Loads a single instance.optional()Loads a single instance and wraps it in Optional.Sets value for a query parameter.Sets value for a query parameter.Sets value for a parameter ofjava.util.Datetype.voidsetDataManager(UnconstrainedDataManager dataManager) setParameters(Map<String, Object> parameters) Sets the map of query parameters.Sets DataStore name.
- 
Field Details- 
dataManager
 
- 
- 
Constructor Details- 
FluentValueLoader
 
- 
- 
Method Details- 
createLoadContext
- 
listLoads a list of entities.
- 
optionalLoads a single instance and wraps it in Optional.
- 
oneLoads a single instance.- Throws:
- NoResultException- if nothing was loaded
 
- 
storeSets DataStore name.
- 
hintSets custom hint that should be used by the query.
- 
hintsSets custom hints that should be used by the query.
- 
parameterSets value for a query parameter.- Parameters:
- name- parameter name
- value- parameter value
 
- 
parameterpublic FluentValueLoader<T> parameter(String name, Date value, jakarta.persistence.TemporalType temporalType) Sets value for a parameter ofjava.util.Datetype.- Parameters:
- name- parameter name
- value- parameter value
- temporalType- how to interpret the value
 
- 
parameterSets value for a query parameter.- Parameters:
- name- parameter name
- value- parameter value
- implicitConversion- whether to do parameter value conversions, e.g. convert an entity to its ID
 
- 
setParametersSets the map of query parameters.
- 
firstResultSets results offset.
- 
maxResultsSets results limit.
- 
lockModeSets a lock mode to be used when executing query.
- 
setDataManager
- 
joinTransactionpublic io.jmix.core.AbstractFluentValueLoader joinTransaction(boolean join) 
- 
accessConstraintspublic io.jmix.core.AbstractFluentValueLoader accessConstraints(List<AccessConstraint<?>> accessConstraints) Sets access constraints.
- 
instantiateValueLoadContext
 
-