Package io.jmix.core
Class FluentLoader.ByIds<E>
java.lang.Object
io.jmix.core.FluentLoader.ByIds<E>
- Enclosing class:
- FluentLoader<E>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaccessConstraints(Class<? extends AccessConstraint> accessConstraintsClass) Adds registered access constraints that are subclasses of the given class.accessConstraints(Collection<AccessConstraint<?>> accessConstraints) Adds access constraints.Sets a fetch plan.Sets a fetch plan by name.fetchPlan(Consumer<FetchPlanBuilder> fetchPlanBuilderConfigurer) Sets a fetch plan configured by theFetchPlanBuilder.fetchPlanProperties(String... properties) Sets a fetch plan containing the given properties.hint(String hintName, Serializable value) Adds custom hint that should be used by the query.hints(Map<String, Serializable> hints) Adds custom hints that should be used by the query.joinTransaction(boolean join) Indicates that the operation must be performed in an existing transaction if it exists.list()Loads a list of entities.lockMode(jakarta.persistence.LockModeType lockMode) Sets a lock mode to be used when executing query.
- 
Constructor Details- 
ByIds
 
- 
- 
Method Details- 
listLoads a list of entities.
- 
fetchPlanSets a fetch plan.
- 
fetchPlanSets a fetch plan by name.
- 
fetchPlanSets a fetch plan configured by theFetchPlanBuilder. For example:dataManager.load(Pet.class) .ids(id1, id2) .fetchPlan(fetchPlanBuilder -> fetchPlanBuilder.addAll( "name", "owner.name")) .list();
- 
fetchPlanPropertiesSets a fetch plan containing the given properties. A property can be designated by a path in the entity graph. For example:dataManager.load(Pet.class) .ids(id1, id2) .fetchPlanProperties( "name", "owner.name", "owner.address.city") .list();
- 
hintAdds custom hint that should be used by the query.
- 
hintsAdds custom hints that should be used by the query.
- 
accessConstraintsAdds access constraints.
- 
accessConstraintspublic FluentLoader.ByIds<E> accessConstraints(Class<? extends AccessConstraint> accessConstraintsClass) Adds registered access constraints that are subclasses of the given class.
- 
joinTransactionIndicates that the operation must be performed in an existing transaction if it exists. True by default.
- 
lockModeSets a lock mode to be used when executing query.
 
-