java.lang.Object
com.graphql_java_generator.plugin.language.impl.RelationImpl
All Implemented Interfaces:
Relation

public class RelationImpl extends Object implements Relation
The class that implements the Relation interface
Author:
etienne-sf
  • Field Details

    • field

      @NonNull public @NonNull Field field
  • Constructor Details

    • RelationImpl

      public RelationImpl()
  • Method Details

    • getDataFetcherName

      public String getDataFetcherName()
      Returns the name of the DataFetcher to use for this relation.
      Specified by:
      getDataFetcherName in interface Relation
      Returns:
    • getAnnotation

      public Object getAnnotation()
      Retrieves the annotation to add to this field, when in server mode, to serve the relation that this field holds
      Specified by:
      getAnnotation in interface Relation
      Returns:
      The relevant annotation, or "" (an empty string) if there no annotation to add