OUTPUT_TYPE - the output typepublic abstract class GQLAbstractCustomMethod<OUTPUT_TYPE> extends Object implements IGQLAbstractCustomMethod<OUTPUT_TYPE>
| Constructor and Description |
|---|
GQLAbstractCustomMethod()
Default constructor
|
GQLAbstractCustomMethod(String methodName,
boolean mutation,
String... argNames)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArgumentName(int argumentPosition)
Get the nae of this custom method argument at given position
|
List<String> |
getArgumentNames()
Get method argument names
|
Type |
getArgumentType(int argumentPosition)
Get the
Type of this custom method argument at given position |
String |
getMethodName()
Get the method name that will be available in GraphQL schema
|
Type |
getOutputType()
Get output type from generic configuration of this class
|
boolean |
isMutation()
Get whether this method is a mutation (return true) or a query (return
false).
|
void |
setArgNames(List<String> argNames)
Set custom method argument names
|
void |
setMethodName(String methodName)
Set the method name that will be available in GraphQL schema
|
void |
setMutation(boolean mutation)
Set whether this method is a mutation (return true) or a query (return
false).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentTypespublic Type getOutputType()
IGQLAbstractCustomMethodgetOutputType in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public String getArgumentName(int argumentPosition)
argumentPosition - the argument positionpublic Type getArgumentType(int argumentPosition)
Type of this custom method argument at given positionargumentPosition - the argument positionType of the argumentpublic void setMethodName(String methodName)
methodName - the methodName to setpublic String getMethodName()
getMethodName in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public void setMutation(boolean mutation)
true (mutation).mutation - the mutation to setpublic boolean isMutation()
true (mutation).isMutation in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public List<String> getArgumentNames()
getArgumentNames in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>Copyright © 2019. All rights reserved.