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 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

      no.sikt.graphitron.javapoet.ClassName getRecordClassName()
      Returns:
      The ClassName for 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

      no.sikt.graphitron.javapoet.ClassName asSourceClassName(boolean toRecord)
      Returns:
      The ClassName for this object when it is considered the source of a mapping.
    • asTargetClassName

      no.sikt.graphitron.javapoet.ClassName asTargetClassName(boolean toRecord)
      Returns:
      The ClassName for 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

      List<String> getKeyColumns()