public static class FluentLoader.ByIds<E>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ByIds(FluentLoader<E> loader,
java.util.Collection ids) |
Modifier and Type | Method and Description |
---|---|
FluentLoader.ByIds<E> |
accessConstraints(java.lang.Class<? extends AccessConstraint> accessConstraintsClass)
Adds registered access constraints that are subclasses of the given class.
|
FluentLoader.ByIds<E> |
accessConstraints(java.util.Collection<AccessConstraint<?>> accessConstraints)
Adds access constraints.
|
FluentLoader.ByIds<E> |
fetchPlan(java.util.function.Consumer<FetchPlanBuilder> fetchPlanBuilderConfigurer)
Sets a fetch plan configured by the
FetchPlanBuilder . |
FluentLoader.ByIds<E> |
fetchPlan(FetchPlan fetchPlan)
Sets a fetch plan.
|
FluentLoader.ByIds<E> |
fetchPlan(java.lang.String fetchPlanName)
Sets a fetch plan by name.
|
FluentLoader.ByIds<E> |
fetchPlanProperties(java.lang.String... properties)
Sets a fetch plan containing the given properties.
|
FluentLoader.ByIds<E> |
hint(java.lang.String hintName,
java.io.Serializable value)
Adds custom hint that should be used by the query.
|
FluentLoader.ByIds<E> |
hints(java.util.Map<java.lang.String,java.io.Serializable> hints)
Adds custom hints that should be used by the query.
|
FluentLoader.ByIds<E> |
joinTransaction(boolean join)
Indicates that the operation must be performed in an existing transaction if it exists.
|
java.util.List<E> |
list()
Loads a list of entities.
|
protected ByIds(FluentLoader<E> loader, java.util.Collection ids)
public java.util.List<E> list()
public FluentLoader.ByIds<E> fetchPlan(@Nullable FetchPlan fetchPlan)
public FluentLoader.ByIds<E> fetchPlan(@Nullable java.lang.String fetchPlanName)
public FluentLoader.ByIds<E> fetchPlan(java.util.function.Consumer<FetchPlanBuilder> fetchPlanBuilderConfigurer)
FetchPlanBuilder
. For example:
dataManager.load(Pet.class) .ids(id1, id2) .fetchPlan(fetchPlanBuilder -> fetchPlanBuilder.addAll( "name", "owner.name")) .list();
public FluentLoader.ByIds<E> fetchPlanProperties(java.lang.String... properties)
dataManager.load(Pet.class) .ids(id1, id2) .fetchPlanProperties( "name", "owner.name", "owner.address.city") .list();
public FluentLoader.ByIds<E> hint(java.lang.String hintName, java.io.Serializable value)
public FluentLoader.ByIds<E> hints(java.util.Map<java.lang.String,java.io.Serializable> hints)
public FluentLoader.ByIds<E> accessConstraints(java.util.Collection<AccessConstraint<?>> accessConstraints)
public FluentLoader.ByIds<E> accessConstraints(java.lang.Class<? extends AccessConstraint> accessConstraintsClass)
public FluentLoader.ByIds<E> joinTransaction(boolean join)