Interface Fetchable

    • Method Detail

      • getFetchableName

        String getFetchableName()
        The name of the fetchable
      • getMappedFetchOptions

        FetchOptions getMappedFetchOptions()
        The configured fetch timing and style
      • resolveCircularFetch

        default Fetch resolveCircularFetch​(NavigablePath fetchablePath,
                                           FetchParent fetchParent,
                                           FetchTiming fetchTiming,
                                           DomainResultCreationState creationState)
        Check whether this Fetchable is considered a circular fetch.
        Parameters:
        fetchablePath - The overall path within the graph
        Returns:
        The Fetch representing the circularity; null indicates the fetch is not circular
      • generateFetch

        Fetch generateFetch​(FetchParent fetchParent,
                            NavigablePath fetchablePath,
                            FetchTiming fetchTiming,
                            boolean selected,
                            String resultVariable,
                            DomainResultCreationState creationState)
        Generates a Fetch of this fetchable
        Parameters:
        fetchParent - The parent of the Fetch we are generating
        fetchablePath - The overall path within the graph
        fetchTiming - The requested fetch timing
      • incrementFetchDepth

        default boolean incrementFetchDepth()
        Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.
        See Also:
        AvailableSettings.MAX_FETCH_DEPTH