Interface PartialRequestGraphQLRepository

All Superinterfaces:
PartialQueries

@GraphQLRepository(queryExecutor=MyQueryTypeExecutorAllGraphQLCases.class) public interface PartialRequestGraphQLRepository extends PartialQueries
This interface demonstrate the use of GraphqlRepository: it just redefines the method of the PartialQueries interface. These methods:
  • Are marked with the Override annotation, to make sure it comes from the super interface (useless in normal use case, as the GraphQLRepository interface would not inherit from another interface)
  • Are marked with the PartialRequest annotation, to define the associated GraphQL request
Please note that the class is itself marked with the GraphQLRepository annotation.
And that's it: no implementation class is needed. Everything is done at runtime by the plugin runtime code.
Author:
etienne-sf
  • Method Details

    • withoutParameters

      @PartialRequest(request="{appearsIn name}") List<CIP_Character_CIS> withoutParameters() throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      withoutParameters in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withOneOptionalParam

      @PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withOneOptionalParam(CINP_CharacterInput_CINS character) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      withOneOptionalParam in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withOneMandatoryParam

      @PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withOneMandatoryParam(CINP_CharacterInput_CINS character) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      withOneMandatoryParam in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withEnum

      @PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withEnum(CEP_Episode_CES episode) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      withEnum in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withList

      @PartialRequest(request="{id name appearsIn friends {id name}}") List<CIP_Character_CIS> withList(String name, List<CINP_CharacterInput_CINS> friends) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      withList in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • error

      @PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS error(String errorLabel) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      error in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • allFieldCases

      @PartialRequest(request="{ ... on WithID { id } name date dateTime dates forname(uppercase: ?uppercase, textToAppendToTheForname: ?textToAppendToTheForname) age nbComments comments booleans aliases planets friends {id} oneWithIdSubType {id name} listWithIdSubTypes(nbItems: ?nbItemsWithId, date: ?date, dates: &dates, uppercaseName: ?uppercaseNameList, textToAppendToTheForname: ?textToAppendToTheFornameWithId) {name id} oneWithoutIdSubType(input: ?input) {name} listWithoutIdSubTypes(nbItems: ?nbItemsWithoutId, input: ?inputList, textToAppendToTheForname: ?textToAppendToTheFornameWithoutId) {name}}") CTP_AllFieldCases_CTS allFieldCases(CINP_AllFieldCasesInput_CINS allFieldCasesInput, @BindParameter(name="uppercase") Boolean uppercase, @BindParameter(name="textToAppendToTheForname") String textToAppendToTheForname, @BindParameter(name="nbItemsWithId") long nbItemsWithId, @BindParameter(name="date") Date date, @BindParameter(name="dateTime") OffsetDateTime dateTime, @BindParameter(name="dates") List<Date> dates, @BindParameter(name="uppercaseNameList") Boolean uppercaseNameList, @BindParameter(name="textToAppendToTheFornameWithId") String textToAppendToTheFornameWithId, @BindParameter(name="input") CINP_FieldParameterInput_CINS input, @BindParameter(name="nbItemsWithoutId") int nbItemsWithoutId, @BindParameter(name="inputList") CINP_FieldParameterInput_CINS inputList, @BindParameter(name="textToAppendToTheFornameWithoutId") String textToAppendToTheFornameWithoutId) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      allFieldCases in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • aBreak

      @PartialRequest(request="{case(test: &test, if: ?if)}") CTP_break_CTS aBreak(@BindParameter(name="test") CEP_extends_CES test, @BindParameter(name="if") String _if) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      aBreak in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • createHuman

      @PartialRequest(request="{id name}", requestType=mutation) CTP_Human_CTS createHuman(CINP_HumanInput_CINS human) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Specified by:
      createHuman in interface PartialQueries
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException