Class DataFetcherMappingInfo
java.lang.Object
org.springframework.graphql.data.method.annotation.support.DataFetcherMappingInfo
Mapping information for a controller method to be registered as a
DataFetcher
.- Since:
- 1.3.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionDataFetcherMappingInfo
(String typeName, String field, boolean batchMapping, int maxBatchSize, HandlerMethod handlerMethod) DataFetcherMappingInfo
(String typeName, DataFetcherMappingInfo info) -
Method Summary
Modifier and TypeMethodDescriptionboolean
The field to bind the controller method to.Shortcut for the fieldName from the coordinates.The controller method to use for data fetching.int
A batch size limit to apply for a batch mapping method, or -1 if a limit does not apply.Shortcut for the typeName from the coordinates.int
hashCode()
boolean
Whether it is anBatchMapping
method or not in which case it is anSchemaMapping
method.toString()
-
Constructor Details
-
DataFetcherMappingInfo
public DataFetcherMappingInfo(String typeName, String field, boolean batchMapping, int maxBatchSize, HandlerMethod handlerMethod) -
DataFetcherMappingInfo
-
-
Method Details
-
getCoordinates
The field to bind the controller method to. -
getTypeName
Shortcut for the typeName from the coordinates. -
getFieldName
Shortcut for the fieldName from the coordinates. -
isBatchMapping
public boolean isBatchMapping()Whether it is anBatchMapping
method or not in which case it is anSchemaMapping
method. -
getMaxBatchSize
public int getMaxBatchSize()A batch size limit to apply for a batch mapping method, or -1 if a limit does not apply. -
getHandlerMethod
The controller method to use for data fetching. -
equals
-
hashCode
public int hashCode() -
toString
-