Class ColumnImpl

java.lang.Object
com.mysql.cj.xdevapi.ColumnImpl
All Implemented Interfaces:
Column

public class ColumnImpl
extends java.lang.Object
implements Column
  • Constructor Summary

    Constructors 
    Constructor Description
    ColumnImpl​(Field f)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCharacterSetName()
    Get character set name for the column value.
    java.lang.String getCollationName()
    Get collation name for the column value.
    java.lang.String getColumnLabel()
    Get alias of this column.
    java.lang.String getColumnName()
    Get name of this column.
    int getFractionalDigits()
    Get number of fractional digits in this column's value.
    long getLength()
    Get this column's length.
    java.lang.String getSchemaName()
    Get name of Schema.
    java.lang.String getTableLabel()
    Get alias of Table.
    java.lang.String getTableName()
    Get name of Table.
    Type getType()
    Get this column's Type.
    boolean isAutoIncrement()
    Checks if this is an auto increment column.
    boolean isNullable()
    Checks if column can contain null values.
    boolean isNumberSigned()
    Checks if value represents a signed number.
    boolean isPadded()
    Checks if the value has a padding.
    boolean isPartKey()
    Checks if this column is a part of key.
    boolean isPrimaryKey()
    Checks if this is a primary key column.
    boolean isUniqueKey()
    Checks if this is a unique key column.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getSchemaName

      public java.lang.String getSchemaName()
      Description copied from interface: Column
      Get name of Schema.
      Specified by:
      getSchemaName in interface Column
      Returns:
      schema name
    • getTableName

      public java.lang.String getTableName()
      Description copied from interface: Column
      Get name of Table.
      Specified by:
      getTableName in interface Column
      Returns:
      table name
    • getTableLabel

      public java.lang.String getTableLabel()
      Description copied from interface: Column
      Get alias of Table.
      Specified by:
      getTableLabel in interface Column
      Returns:
      table alias
    • getColumnName

      public java.lang.String getColumnName()
      Description copied from interface: Column
      Get name of this column.
      Specified by:
      getColumnName in interface Column
      Returns:
      column name
    • getColumnLabel

      public java.lang.String getColumnLabel()
      Description copied from interface: Column
      Get alias of this column.
      Specified by:
      getColumnLabel in interface Column
      Returns:
      column alias
    • getType

      public Type getType()
      Description copied from interface: Column
      Get this column's Type.
      Specified by:
      getType in interface Column
      Returns:
      column type
    • getLength

      public long getLength()
      Description copied from interface: Column
      Get this column's length.
      Specified by:
      getLength in interface Column
      Returns:
      column length
    • getFractionalDigits

      public int getFractionalDigits()
      Description copied from interface: Column
      Get number of fractional digits in this column's value.
      Specified by:
      getFractionalDigits in interface Column
      Returns:
      number of fractional digits
    • isNumberSigned

      public boolean isNumberSigned()
      Description copied from interface: Column
      Checks if value represents a signed number.
      Specified by:
      isNumberSigned in interface Column
      Returns:
      true if value represents a signed number
    • getCollationName

      public java.lang.String getCollationName()
      Description copied from interface: Column
      Get collation name for the column value.
      Specified by:
      getCollationName in interface Column
      Returns:
      collation name
    • getCharacterSetName

      public java.lang.String getCharacterSetName()
      Description copied from interface: Column
      Get character set name for the column value.
      Specified by:
      getCharacterSetName in interface Column
      Returns:
      character set name
    • isPadded

      public boolean isPadded()
      Description copied from interface: Column
      Checks if the value has a padding.
      Specified by:
      isPadded in interface Column
      Returns:
      true if column flags contain FIELD_FLAG_ZEROFILL or field type is CHAR
    • isNullable

      public boolean isNullable()
      Description copied from interface: Column
      Checks if column can contain null values.
      Specified by:
      isNullable in interface Column
      Returns:
      false if column flags contain FIELD_FLAG_NOT_NULL
    • isAutoIncrement

      public boolean isAutoIncrement()
      Description copied from interface: Column
      Checks if this is an auto increment column.
      Specified by:
      isAutoIncrement in interface Column
      Returns:
      true if column flags contain FIELD_FLAG_AUTO_INCREMENT
    • isPrimaryKey

      public boolean isPrimaryKey()
      Description copied from interface: Column
      Checks if this is a primary key column.
      Specified by:
      isPrimaryKey in interface Column
      Returns:
      true if column flags contain FIELD_FLAG_PRIMARY_KEY
    • isUniqueKey

      public boolean isUniqueKey()
      Description copied from interface: Column
      Checks if this is a unique key column.
      Specified by:
      isUniqueKey in interface Column
      Returns:
      true if column flags contain FIELD_FLAG_UNIQUE_KEY
    • isPartKey

      public boolean isPartKey()
      Description copied from interface: Column
      Checks if this column is a part of key.
      Specified by:
      isPartKey in interface Column
      Returns:
      true if column flags contain FIELD_FLAG_MULTIPLE_KEY