Class ColumnInformation


  • public class ColumnInformation
    extends Object
    Information about table column.
    • Constructor Detail

      • ColumnInformation

        public ColumnInformation​(int ordinalPosition,
                                 String schemaName,
                                 String tblName,
                                 String colName,
                                 Class<?> fieldCls,
                                 boolean nullable,
                                 Object dfltVal,
                                 int precision,
                                 int scale,
                                 boolean affinityCol)
        Parameters:
        ordinalPosition - Ordinal column position.
        schemaName - Schema name.
        tblName - Table name.
        colName - Column name.
        fieldCls - Field class.
        nullable - Nullable.
        dfltVal - Default value.
        precision - Precision for a column or -1 if not applicable.
        scale - Scale for a column or -1 if not applicable.
    • Method Detail

      • columnId

        public int columnId()
        Returns:
        Column id.
      • schemaName

        public String schemaName()
        Returns:
        Schema name.
      • tableName

        public String tableName()
        Returns:
        Table name.
      • columnName

        public String columnName()
        Returns:
        Column name.
      • fieldClass

        public Class<?> fieldClass()
        Returns:
        Class of column type.
      • nullable

        public boolean nullable()
        Returns:
        true For nullabe column
      • defaultValue

        public Object defaultValue()
        Returns:
        Default value for column or null in case dafault value wasn't set
      • precision

        public int precision()
        Returns:
        Precision.
      • scale

        public int scale()
        Returns:
        Scale.
      • affinityColumn

        public boolean affinityColumn()
        Returns:
        true For affinity column.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object