Modifier and Type | Method and Description |
---|---|
FluentLoader.ByIds<E,K> |
dynamicAttributes(boolean dynamicAttributes)
Sets loading of dynamic attributes.
|
java.util.List<E> |
list()
Loads a list of entities.
|
FluentLoader.ByIds<E,K> |
softDeletion(boolean softDeletion)
Sets soft deletion.
|
FluentLoader.ByIds<E,K> |
view(java.util.function.Consumer<ViewBuilder> viewBuilderConfigurer)
Sets a view configured by the
ViewBuilder . |
FluentLoader.ByIds<E,K> |
view(java.lang.String viewName)
Sets a view by name.
|
FluentLoader.ByIds<E,K> |
view(View view)
Sets a view.
|
FluentLoader.ByIds<E,K> |
viewProperties(java.lang.String... properties)
Sets a view containing the given properties.
|
public java.util.List<E> list()
public FluentLoader.ByIds<E,K> view(View view)
public FluentLoader.ByIds<E,K> view(java.lang.String viewName)
public FluentLoader.ByIds<E,K> view(java.util.function.Consumer<ViewBuilder> viewBuilderConfigurer)
ViewBuilder
. For example:
dataManager.load(Pet.class) .ids(id1, id2) .view(viewBuilder -> viewBuilder.addAll( "name", "owner.name")) .list();
public FluentLoader.ByIds<E,K> viewProperties(java.lang.String... properties)
dataManager.load(Pet.class) .ids(id1, id2) .viewProperties( "name", "owner.name", "owner.address.city") .list();
public FluentLoader.ByIds<E,K> softDeletion(boolean softDeletion)
public FluentLoader.ByIds<E,K> dynamicAttributes(boolean dynamicAttributes)