Class RelationImpl
java.lang.Object
com.graphql_java_generator.plugin.language.impl.RelationImpl
- All Implemented Interfaces:
Relation
The class that implements the
Relation
interface- Author:
- etienne-sf
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the annotation to add to this field, when in server mode, to serve the relation that this field holdsReturns the name of the DataFetcher to use for this relation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.graphql_java_generator.plugin.language.Relation
getField, getMappedyBy, getObjectType, getRelationType, isOwnerSide
-
Field Details
-
field
-
-
Constructor Details
-
RelationImpl
public RelationImpl()
-
-
Method Details
-
getDataFetcherName
Returns the name of the DataFetcher to use for this relation.- Specified by:
getDataFetcherName
in interfaceRelation
- Returns:
-
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 interfaceRelation
- Returns:
- The relevant annotation, or "" (an empty string) if there no annotation to add
-