java.lang.Object
io.debezium.connector.postgresql.connection.pgoutput.ColumnMetaData

@Immutable public class ColumnMetaData extends Object
Defines the relational column mapping for a table.
Author:
Gunnar Morling, Chris Cranford
  • Field Details

    • columnName

      private final String columnName
    • postgresType

      private final PostgresType postgresType
    • key

      private final boolean key
    • optional

      private final boolean optional
    • hasDefaultValue

      private final boolean hasDefaultValue
    • defaultValueExpression

      private final String defaultValueExpression
    • length

      private final int length
    • scale

      private final int scale
    • typeName

      private final String typeName
  • Constructor Details

    • ColumnMetaData

      ColumnMetaData(String columnName, PostgresType postgresType, boolean key, boolean optional, boolean hasDefaultValue, String defaultValueExpression, int typeModifier)
      Create a metadata structure representing a column.
      Parameters:
      columnName - name of the column; must not be null
      postgresType - postgres database type; must not be null
      key - true if column is part of the primary key, false otherwise
      optional - true if the column is considered optional, false otherwise
      hasDefaultValue - true if the column has a default value specified, false otherwise
      defaultValueExpression - the parsed default value literal for the column
      typeModifier - the attribute type modifier
  • Method Details

    • getColumnName

      public String getColumnName()
    • getPostgresType

      public PostgresType getPostgresType()
    • isKey

      public boolean isKey()
    • isOptional

      public boolean isOptional()
    • hasDefaultValue

      public boolean hasDefaultValue()
    • getDefaultValueExpression

      public String getDefaultValueExpression()
    • getLength

      public int getLength()
    • getScale

      public int getScale()
    • getTypeName

      public String getTypeName()