Package io.jmix.core
Class FluentLoader.ByIds<E>
java.lang.Object
io.jmix.core.FluentLoader.ByIds<E>
- Enclosing class:
- FluentLoader<E>
-
Constructor Summary
-
Method Summary
Modifier 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
-
list
Loads a list of entities. -
fetchPlan
Sets a fetch plan. -
fetchPlan
Sets a fetch plan by name. -
fetchPlan
Sets a fetch plan configured by theFetchPlanBuilder
. For example:dataManager.load(Pet.class) .ids(id1, id2) .fetchPlan(fetchPlanBuilder -> fetchPlanBuilder.addAll( "name", "owner.name")) .list();
-
fetchPlanProperties
Sets 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();
-
hint
Adds custom hint that should be used by the query. -
hints
Adds custom hints that should be used by the query. -
accessConstraints
Adds access constraints. -
accessConstraints
public FluentLoader.ByIds<E> accessConstraints(Class<? extends AccessConstraint> accessConstraintsClass) Adds registered access constraints that are subclasses of the given class. -
joinTransaction
Indicates that the operation must be performed in an existing transaction if it exists. True by default. -
lockMode
Sets a lock mode to be used when executing query.
-