Uses of Class
com.graphql_java_generator.exception.GraphQLRequestPreparationException
Package | Description |
---|---|
com.graphql_java_generator.client | |
com.graphql_java_generator.client.directive | |
com.graphql_java_generator.client.graphqlrepository |
This package contains all the needed classes to manage
GraphQLRepository . |
com.graphql_java_generator.client.request |
This package contains all the classes used to generate the requests toward the GraphQL server.
|
com.graphql_java_generator.exception | |
com.graphql_java_generator.util |
-
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.client
Methods in com.graphql_java_generator.client that throw GraphQLRequestPreparationException Modifier and Type Method Description java.lang.Class<?>
GraphqlClientUtils. checkFieldOfGraphQLType(java.lang.String name, java.lang.Boolean shouldBeScalar, java.lang.Class<?> owningClass)
Check if the given field is owned by the class of thisObjectResponse
.java.lang.Class<?>
GraphqlClientUtils. checkIsScalar(java.lang.reflect.Field field, java.lang.Boolean shouldBeScalar)
This method checks whether the given field (as an attribute) of the given class is a GraphQL scalar, or not, depending on shouldBeScalar.java.lang.Class<?>
GraphqlClientUtils. checkIsScalar(java.lang.String fieldName, java.lang.reflect.Method method, java.lang.Boolean shouldBeScalar)
This method checks whether the given field (as a method: getter, query...) of the given class is a GraphQL scalar, or not, depending on shouldBeScalar.void
GraphqlClientUtils. checkName(java.lang.String graphqlIdentifier)
Checks that the given GraphQL name is valid.java.lang.Class<?>
GraphqlClientUtils. getGraphQLType(java.lang.reflect.AccessibleObject fieldOrMethod)
Returns the Class indicated as the value for the graphqlType attribute of the GraphQLScalar or GraphQLNonScalar annotationboolean
GraphqlClientUtils. isScalar(java.lang.reflect.AccessibleObject fieldOrMethod)
Indicates whether the given class is a scalar or not -
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.client.directive
Methods in com.graphql_java_generator.client.directive that throw GraphQLRequestPreparationException Modifier and Type Method Description Directive
Directive. getDirectiveDefinition()
Returns the definition for this GraphQL directiveConstructors in com.graphql_java_generator.client.directive that throw GraphQLRequestPreparationException Constructor Description Directive(QueryTokenizer qt)
Create a Directive from aQueryTokenizer
. -
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.client.graphqlrepository
Methods in com.graphql_java_generator.client.graphqlrepository that throw GraphQLRequestPreparationException Modifier and Type Method Description <R> R
GraphQLRepositoryProxyBeanFactory. createGraphQLRepositoryInvocationHandler(java.lang.ClassLoader classLoader, java.lang.Class<R> clazz)
Constructors in com.graphql_java_generator.client.graphqlrepository that throw GraphQLRequestPreparationException Constructor Description GraphQLRepositoryInvocationHandler(java.lang.Class<T> repositoryInterface, GraphQLQueryExecutor queryExecutor, GraphQLMutationExecutor mutationExecutor, GraphQLSubscriptionExecutor subscriptionExecutor)
This constructor builds the instance from the given Spring ApplicationContext provides the query, mutation and subscription that have been defined in the GraphQL schema.GraphQLRepositoryInvocationHandler(java.lang.Class<T> repositoryInterface, org.springframework.context.ApplicationContext ctx)
This constructor builds the instance from the given SpringApplicationContext
: it extracts the query, mutation and subscription executors that have been generated from the GraphQL schema. -
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.client.request
Methods in com.graphql_java_generator.client.request that throw GraphQLRequestPreparationException Modifier and Type Method Description void
Fragment. addTypenameFields()
Adds the __typename field into this fragment, and all the subojects it contains.ObjectResponse
Builder. build()
Returns the builtObjectResponse
.protected abstract QueryField
AbstractGraphQLRequest. getMutationContext()
Retrieved theQueryField
for the mutation (that is the mutation type coming from the GraphQL schema) from the concrete class.protected abstract QueryField
AbstractGraphQLRequest. getQueryContext()
Retrieved theQueryField
for the query (that is the query type coming from the GraphQL schema) from the concrete class.protected abstract QueryField
AbstractGraphQLRequest. getSubscriptionContext()
Retrieved theQueryField
for the subscription (that is the subscription type coming from the GraphQL schema) from the concrete class.boolean
QueryField. isScalar()
Indicates whether this field is a scalar or not.java.lang.String
QueryTokenizer. readNextRealToken(java.lang.String expected, java.lang.String action)
Reads the next real token, that is the next token that is not a separatorstatic java.util.List<InputParameter>
InputParameter. readTokenizerForInputParameters(QueryTokenizer qt, Directive directive, java.lang.Class<?> owningClass, java.lang.String fieldName)
Reads a list of input parameters, from aQueryTokenizer
.void
QueryField. readTokenizerForResponseDefinition(QueryTokenizer qt, java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,java.lang.reflect.Field>> aliasFields)
Reads the definition of the expected response definition from the server.Builder
Builder. withQueryResponseDef(java.lang.String queryResponseDef)
Builds aObjectResponse
from a part of a GraphQL query.Constructors in com.graphql_java_generator.client.request that throw GraphQLRequestPreparationException Constructor Description AbstractGraphQLRequest(java.lang.String graphQLRequest)
Creates the GraphQL request, for a full request.AbstractGraphQLRequest(java.lang.String graphQLRequest, RequestType requestType, java.lang.String fieldName, InputParameter... inputParams)
Create the instance, from the GraphQL request, for a partial request.
Important note: this constructor SHOULD NOT be called by external application.AppliedGlobalFragment(java.lang.String currentToken, QueryTokenizer qt)
Creates an instance for a global fragment, that has been read in the currentQueryTokenizer
.Fragment(QueryTokenizer qt, java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,java.lang.reflect.Field>> aliasFields, java.lang.String packageName, boolean inlineFragment, java.lang.Class<?> clazz)
Reads a Fragment definition, from the currentQueryTokenizer
.ObjectResponse(java.lang.String graphQLRequest)
ObjectResponse(java.lang.String graphQLRequest, RequestType requestType, java.lang.String queryName, InputParameter... inputParams)
QueryField(java.lang.Class<?> owningClass, java.lang.String fieldName)
The constructor, when created by theBuilder
: it must provide the owningClassQueryField(java.lang.Class<?> owningClass, java.lang.String fieldName, java.lang.String fieldAlias)
The constructor, when created by theBuilder
: it must provide the owningClass -
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.exception
Subclasses of GraphQLRequestPreparationException in com.graphql_java_generator.exception Modifier and Type Class Description class
GraphQLInternalErrorException
Thrown when an internal error of the GraphQL generator occurs -
Uses of GraphQLRequestPreparationException in com.graphql_java_generator.util
Methods in com.graphql_java_generator.util that throw GraphQLRequestPreparationException Modifier and Type Method Description java.lang.reflect.Field
GraphqlUtils. getDeclaredField(java.lang.Class<?> owningClass, java.lang.String fieldName, boolean mustFindField)
Returns aField
from the given class.java.lang.Class<?>
GraphqlUtils. getFieldType(java.lang.Class<?> owningClass, java.lang.String fieldName, boolean returnIsMandatory)
Retrieves the class of the fieldName field of the owningClass class.