Class RevisionSortAdapter

java.lang.Object
io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper<S>
io.leangen.graphql.generator.mapping.AbstractTypeAdapter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>
io.leangen.graphql.spqr.spring.modules.data.RevisionSortAdapter
All Implemented Interfaces:
io.leangen.graphql.generator.mapping.InputConverter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>, io.leangen.graphql.generator.mapping.OutputConverter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>, io.leangen.graphql.generator.mapping.SchemaTransformer, io.leangen.graphql.generator.mapping.TypeMapper, io.leangen.graphql.generator.mapping.TypeSubstituter, DefaultValueSchemaTransformer

public class RevisionSortAdapter extends io.leangen.graphql.generator.mapping.AbstractTypeAdapter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction> implements DefaultValueSchemaTransformer
  • Field Summary

    Fields inherited from class io.leangen.graphql.generator.mapping.AbstractTypeAdapter

    sourceType

    Fields inherited from class io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper

    substituteType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.history.RevisionSort
    convertInput(org.springframework.data.domain.Sort.Direction substitute, AnnotatedType type, io.leangen.graphql.execution.GlobalEnvironment environment, io.leangen.graphql.metadata.strategy.value.ValueMapper valueMapper)
     
    org.springframework.data.domain.Sort.Direction
    convertOutput(org.springframework.data.history.RevisionSort original, AnnotatedType type, io.leangen.graphql.execution.ResolutionEnvironment resolutionEnvironment)
     
     
    boolean
     

    Methods inherited from class io.leangen.graphql.generator.mapping.AbstractTypeAdapter

    supports

    Methods inherited from class io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper

    getSubstituteType, toGraphQLInputType, toGraphQLType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.leangen.graphql.spqr.spring.modules.data.DefaultValueSchemaTransformer

    transformArgument

    Methods inherited from interface io.leangen.graphql.generator.mapping.InputConverter

    getSubstituteType

    Methods inherited from interface io.leangen.graphql.generator.mapping.SchemaTransformer

    transformArgument, transformArgument, transformDirective, transformDirective, transformField, transformInputField
  • Constructor Details

    • RevisionSortAdapter

      public RevisionSortAdapter()
  • Method Details

    • convertInput

      public org.springframework.data.history.RevisionSort convertInput(org.springframework.data.domain.Sort.Direction substitute, AnnotatedType type, io.leangen.graphql.execution.GlobalEnvironment environment, io.leangen.graphql.metadata.strategy.value.ValueMapper valueMapper)
      Specified by:
      convertInput in interface io.leangen.graphql.generator.mapping.InputConverter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>
    • convertOutput

      public org.springframework.data.domain.Sort.Direction convertOutput(org.springframework.data.history.RevisionSort original, AnnotatedType type, io.leangen.graphql.execution.ResolutionEnvironment resolutionEnvironment)
      Specified by:
      convertOutput in interface io.leangen.graphql.generator.mapping.OutputConverter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>
    • getDefaultValue

      public Object getDefaultValue()
      Specified by:
      getDefaultValue in interface DefaultValueSchemaTransformer
    • supports

      public boolean supports(AnnotatedType type)
      Specified by:
      supports in interface DefaultValueSchemaTransformer
      Specified by:
      supports in interface io.leangen.graphql.generator.mapping.InputConverter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>
      Overrides:
      supports in class io.leangen.graphql.generator.mapping.AbstractTypeAdapter<org.springframework.data.history.RevisionSort,org.springframework.data.domain.Sort.Direction>