Package com.blazebit.persistence.view
Interface SubGraph<T>
- Type Parameters:
T
- The type of the fetched path
- All Known Implementing Classes:
EntityViewSetting
public interface SubGraph<T>
Represents a fetch graph node for entity views.
- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description <X> SubGraph<X>
fetch(MethodPluralAttribute<T,?,X> attribute)
Adds a fetch for the given attribute and returns theSubGraph
for it.<X> SubGraph<X>
fetch(MethodSingularAttribute<T,X> attribute)
Adds a fetch for the given attribute and returns theSubGraph
for it.<X> SubGraph<X>
fetch(String path)
Adds a fetch for the given path and returns theSubGraph
for it.
-
Method Details
-
fetch
Adds a fetch for the given path and returns theSubGraph
for it. Careful, calling this method will cause that only the attribute paths that are added and reachable object ids will be fetched. Other attributes will be fetched with their default value.- Type Parameters:
X
- The type of the fetched path- Parameters:
path
- The path to fetch- Returns:
- The sub graph for the path
-
fetch
Adds a fetch for the given attribute and returns theSubGraph
for it. Careful, calling this method will cause that only the attribute paths that are added and reachable object ids will be fetched. Other attributes will be fetched with their default value.- Type Parameters:
X
- The type of the fetched path- Parameters:
attribute
- The attribute to fetch- Returns:
- The sub graph for the path
- Since:
- 1.5.0
-
fetch
Adds a fetch for the given attribute and returns theSubGraph
for it. Careful, calling this method will cause that only the attribute paths that are added and reachable object ids will be fetched. Other attributes will be fetched with their default value.- Type Parameters:
X
- The type of the fetched path- Parameters:
attribute
- The attribute to fetch- Returns:
- The sub graph for the path
- Since:
- 1.5.0
-