Package io.jmix.core
Class FluentLoader.ById<E>
java.lang.Object
io.jmix.core.FluentLoader.ById<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) Configure the fetch plan.fetchPlanProperties(String... properties) Sets a fetch plan containing the given properties.hint(String hintName, Serializable value) Adds a 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.lockMode(jakarta.persistence.LockModeType lockMode) Sets a lock mode to be used when executing query.one()Loads a single instance.optional()Loads a single instance and wraps it in Optional.
- 
Constructor Details- 
ById
 
- 
- 
Method Details- 
optionalLoads a single instance and wraps it in Optional.
- 
oneLoads a single instance.- Throws:
- NoResultException- if nothing was loaded
 
- 
fetchPlanSets a fetch plan.
- 
fetchPlanSets a fetch plan by name.
- 
fetchPlanConfigure the fetch plan.
- 
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) .id(petId) .fetchPlanProperties( "name", "owner.name", "owner.address.city") .list();
- 
hintAdds a custom hint that should be used by the query.
- 
hintsAdds custom hints that should be used by the query.
- 
accessConstraintsAdds access constraints.
- 
accessConstraintspublic FluentLoader.ById<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.
 
-