Interface DataFetchersDelegate

All Known Implementing Classes:
DataFetchersDelegateImpl

public interface DataFetchersDelegate
This class represents a GraphQL Data Fetcher Delegate. A DataFetchersDelegate aggregates all DataFetcher for a GraphQL type. It is only used when in server mode, the GraphQL maven plugin generates on data fetcher delegate for each object whose fields need at least one data fetcher. This helps to limit the impact on the specific code, when the GraphQL schema changes.
Thus there are two kinds of DataFetchersDelegate:
The arguments for the data fetcher delegates are the arguments of its field.
Author:
etienne-sf
  • Method Details

    • getName

      String getName()
      The name of the DataFetcher. This name is a valid java classname identifier, and is the name to use as a method name.
      Returns:
    • getType

      Type getType()
      Returns the Type, for which the DataFetchersDelegate aggregates the access methods.
      Returns:
    • getCamelCaseName

      default String getCamelCaseName()
      The name of the DataFetcher, in camelCase. This name is a valid for a java variable identifier, and is the name to use as a method name.
      Returns:
    • getPascalCaseName

      default String getPascalCaseName()
      The name of the DataFetcher, in PascalCase. This name is a valid for a java type identifier.
      Returns:
    • getDataFetchers

      List<DataFetcher> getDataFetchers()
      Retrieves the DataFetchers that are to be implemented by this Data Fetcher Delegate.
      Returns:
    • getBatchLoaders

      List<BatchLoader> getBatchLoaders()
      Retrieves the BatchLoaders that are to be implemented by this Data Fetcher Delegate.
      Returns: