public interface FetchGroupBuilder<T>
We add select() and fetch() clauses to define the object graph we want to load.
FetchGroup fetchGroup = FetchGroup
  .select("name, status")
  .fetch("contacts", "firstName, lastName, email")
  .build();
Customer.query()
  .select(fetchGroup)
  .where()
  ...
  .findList();
| Modifier and Type | Method and Description | 
|---|---|
FetchGroup<T> | 
build()
Build and return the FetchGroup. 
 | 
FetchGroupBuilder<T> | 
fetch(String path)
Fetch all the properties at the given path. 
 | 
FetchGroupBuilder<T> | 
fetch(String path,
     FetchGroup<?> nestedGroup)
Fetch the path with the nested fetch group. 
 | 
FetchGroupBuilder<T> | 
fetch(String path,
     String properties)
Fetch the path including specified properties. 
 | 
FetchGroupBuilder<T> | 
fetchLazy(String path)
Fetch the path including all its properties lazily. 
 | 
FetchGroupBuilder<T> | 
fetchLazy(String path,
         FetchGroup<?> nestedGroup)
Fetch the path lazily with the nested fetch group. 
 | 
FetchGroupBuilder<T> | 
fetchLazy(String path,
         String properties)
Fetch the path including specified properties lazily. 
 | 
FetchGroupBuilder<T> | 
fetchQuery(String path)
Fetch the path including all its properties using a query join. 
 | 
FetchGroupBuilder<T> | 
fetchQuery(String path,
          FetchGroup<?> nestedGroup)
Fetch the path using a query join with the nested fetch group. 
 | 
FetchGroupBuilder<T> | 
fetchQuery(String path,
          String properties)
Fetch the path including specified properties using a query join. 
 | 
FetchGroupBuilder<T> | 
select(String select)
Specify specific properties to select (top level properties). 
 | 
@Nonnull FetchGroupBuilder<T> select(String select)
@Nonnull FetchGroupBuilder<T> fetch(String path)
@Nonnull FetchGroupBuilder<T> fetch(String path, FetchGroup<?> nestedGroup)
@Nonnull FetchGroupBuilder<T> fetchQuery(String path, FetchGroup<?> nestedGroup)
@Nonnull FetchGroupBuilder<T> fetchLazy(String path, FetchGroup<?> nestedGroup)
@Nonnull FetchGroupBuilder<T> fetch(String path, String properties)
@Nonnull FetchGroupBuilder<T> fetchQuery(String path)
@Nonnull FetchGroupBuilder<T> fetchQuery(String path, String properties)
@Nonnull FetchGroupBuilder<T> fetchLazy(String path)
@Nonnull FetchGroupBuilder<T> fetchLazy(String path, String properties)
@Nonnull FetchGroup<T> build()
Copyright © 2019. All rights reserved.