Interface GenerationField
- All Superinterfaces:
FieldSpecification,GenerationTarget
- All Known Implementing Classes:
ArgumentField,GenerationSourceField,InputField,ObjectField,VirtualSourceField
This interface represents the general functionality associated with GraphQLs fields that can initialise code generation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanNote: This method does not account for implicit references, as this is not resolvable within the field object.booleanbooleanisInput()booleanMethods inherited from interface no.sikt.graphitron.definitions.interfaces.FieldSpecification
getContainerTypeName, getMappingFromFieldOverride, getMappingFromSchemaName, getName, getNodeIdTypeName, getTypeClass, getTypeName, getUpperCaseName, hasNodeID, hasSetFieldOverride, isID, isIterableWrapped, isNonNullable, isNullable, isRootFieldMethods inherited from interface no.sikt.graphitron.definitions.interfaces.GenerationTarget
isExplicitlyNotGenerated, isGenerated, isGeneratedWithResolver
-
Method Details
-
hasFieldReferences
boolean hasFieldReferences() -
isExternalField
boolean isExternalField() -
isInput
boolean isInput() -
isResolver
boolean isResolver()- Returns:
- Does this field point to a resolver method?
-
invokesSubquery
boolean invokesSubquery()Note: This method does not account for implicit references, as this is not resolvable within the field object.- Returns:
- Does this field fulfill the conditions for initiating a subquery?
-
hasCondition
boolean hasCondition() -
hasOverridingCondition
boolean hasOverridingCondition() -
getFieldReferences
List<FieldReference> getFieldReferences() -
getCondition
SQLCondition getCondition() -
hasServiceReference
boolean hasServiceReference()- Returns:
- Does this field have a service reference defined?
-
getService
ServiceWrapper getService()- Returns:
- The wrapper object for a service reference, if the field has a service set. Otherwise, null.
-
getContextFields
- Returns:
- Get any context fields related to this field. This may be either service or condition context fields (without duplicates).
-
hasMutationType
boolean hasMutationType()- Returns:
- Does this field have a mutation operation defined?
-
getMutationType
MutationType getMutationType()- Returns:
- The type of mutation that should be applied in this operation.
-
getFieldRecordMappingName
String getFieldRecordMappingName()- Returns:
- Record-side name mapping based on the name of the field or the
GenerationDirective.FIELDdirective set on this type.
-
getMappingForRecordFieldOverride
MethodMapping getMappingForRecordFieldOverride()- Returns:
- Record-side method mapping based on the name of the field or the directive
GenerationDirective.FIELDset on this type.
-
hasFieldDirective
boolean hasFieldDirective()
-