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 Details

    • fetch

      <X> SubGraph<X> fetch​(String path)
      Adds a fetch for the given path and returns the SubGraph 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

      <X> SubGraph<X> fetch​(MethodSingularAttribute<T,​X> attribute)
      Adds a fetch for the given attribute and returns the SubGraph 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

      <X> SubGraph<X> fetch​(MethodPluralAttribute<T,​?,​X> attribute)
      Adds a fetch for the given attribute and returns the SubGraph 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