Interface RecordObjectSpecification<T extends GenerationField>
- All Superinterfaces:
GenerationTarget,ObjectSpecification<T>
- All Known Implementing Classes:
InputDefinition,InterfaceDefinition,ObjectDefinition,RecordObjectDefinition,UnionDefinition
public interface RecordObjectSpecification<T extends GenerationField>
extends ObjectSpecification<T>, GenerationTarget
Specifies that this Java object represents a GraphQL object.
-
Method Summary
Modifier and TypeMethodDescriptionasSourceClassName(boolean toRecord) asTargetClassName(boolean toRecord) Class<?>getTable()booleanbooleanbooleanbooleanbooleanhasTable()booleanisEntity()Methods inherited from interface no.sikt.graphitron.definitions.interfaces.GenerationTarget
isExplicitlyNotGenerated, isGenerated, isGeneratedWithResolverMethods inherited from interface no.sikt.graphitron.definitions.interfaces.ObjectSpecification
getClassReference, getFieldByName, getFields, getGraphClassName, getName, isOperationRoot
-
Method Details
-
getTable
JOOQMapping getTable()- Returns:
- Table objects which holds table names.
-
hasTable
boolean hasTable()- Returns:
- Does this object have the "
table" directive which implies a connection to a database table?
-
getRecordReference
Class<?> getRecordReference()- Returns:
- The reference for a record class for this input type.
-
getRecordReferenceName
String getRecordReferenceName()- Returns:
- The reference name for a record class for this input type.
-
getRecordClassName
ClassName getRecordClassName()- Returns:
- The
ClassNamefor the record that corresponds to this type.
-
hasJavaRecordReference
boolean hasJavaRecordReference()- Returns:
- Does this input type have a record java class attached?
-
hasRecordReference
boolean hasRecordReference()- Returns:
- Does this input type have a record class attached?
-
asSourceClassName
- Returns:
- The
ClassNamefor this object when it is considered the source of a mapping.
-
asTargetClassName
- Returns:
- The
ClassNamefor this object when it is considered the target of a mapping.
-
asRecordName
String asRecordName()- Returns:
- The name of this object once it is transformed into a record.
-
isEntity
boolean isEntity()- Returns:
- Is this type an entity according to the Apollo Federation specification?
-
getEntityKeys
EntityKeySet getEntityKeys()- Returns:
- Apollo federation entity keys for this type.
-
hasNodeDirective
boolean hasNodeDirective() -
getTypeId
String getTypeId() -
hasCustomKeyColumns
boolean hasCustomKeyColumns() -
getKeyColumns
-