Package com.mysql.cj.xdevapi
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.StringgetCharacterSetName()Get character set name for the column value.java.lang.StringgetCollationName()Get collation name for the column value.java.lang.StringgetColumnLabel()Get alias of this column.java.lang.StringgetColumnName()Get name of this column.intgetFractionalDigits()Get number of fractional digits in this column's value.longgetLength()Get this column's length.java.lang.StringgetSchemaName()Get name ofSchema.java.lang.StringgetTableLabel()Get alias ofTable.java.lang.StringgetTableName()Get name ofTable.TypegetType()Get this column'sType.booleanisAutoIncrement()Checks if this is an auto increment column.booleanisNullable()Checks if column can contain null values.booleanisNumberSigned()Checks if value represents a signed number.booleanisPadded()Checks if the value has a padding.booleanisPartKey()Checks if this column is a part of key.booleanisPrimaryKey()Checks if this is a primary key column.booleanisUniqueKey()Checks if this is a unique key column.
-
Constructor Details
-
ColumnImpl
Constructor.- Parameters:
f-Fieldobject
-
-
Method Details
-
getSchemaName
public java.lang.String getSchemaName()Description copied from interface:ColumnGet name ofSchema.- Specified by:
getSchemaNamein interfaceColumn- Returns:
- schema name
-
getTableName
public java.lang.String getTableName()Description copied from interface:ColumnGet name ofTable.- Specified by:
getTableNamein interfaceColumn- Returns:
- table name
-
getTableLabel
public java.lang.String getTableLabel()Description copied from interface:ColumnGet alias ofTable.- Specified by:
getTableLabelin interfaceColumn- Returns:
- table alias
-
getColumnName
public java.lang.String getColumnName()Description copied from interface:ColumnGet name of this column.- Specified by:
getColumnNamein interfaceColumn- Returns:
- column name
-
getColumnLabel
public java.lang.String getColumnLabel()Description copied from interface:ColumnGet alias of this column.- Specified by:
getColumnLabelin interfaceColumn- Returns:
- column alias
-
getType
Description copied from interface:ColumnGet this column'sType. -
getLength
public long getLength()Description copied from interface:ColumnGet this column's length. -
getFractionalDigits
public int getFractionalDigits()Description copied from interface:ColumnGet number of fractional digits in this column's value.- Specified by:
getFractionalDigitsin interfaceColumn- Returns:
- number of fractional digits
-
isNumberSigned
public boolean isNumberSigned()Description copied from interface:ColumnChecks if value represents a signed number.- Specified by:
isNumberSignedin interfaceColumn- Returns:
- true if value represents a signed number
-
getCollationName
public java.lang.String getCollationName()Description copied from interface:ColumnGet collation name for the column value.- Specified by:
getCollationNamein interfaceColumn- Returns:
- collation name
-
getCharacterSetName
public java.lang.String getCharacterSetName()Description copied from interface:ColumnGet character set name for the column value.- Specified by:
getCharacterSetNamein interfaceColumn- Returns:
- character set name
-
isPadded
public boolean isPadded()Description copied from interface:ColumnChecks if the value has a padding. -
isNullable
public boolean isNullable()Description copied from interface:ColumnChecks if column can contain null values.- Specified by:
isNullablein interfaceColumn- Returns:
- false if column flags contain FIELD_FLAG_NOT_NULL
-
isAutoIncrement
public boolean isAutoIncrement()Description copied from interface:ColumnChecks if this is an auto increment column.- Specified by:
isAutoIncrementin interfaceColumn- Returns:
- true if column flags contain FIELD_FLAG_AUTO_INCREMENT
-
isPrimaryKey
public boolean isPrimaryKey()Description copied from interface:ColumnChecks if this is a primary key column.- Specified by:
isPrimaryKeyin interfaceColumn- Returns:
- true if column flags contain FIELD_FLAG_PRIMARY_KEY
-
isUniqueKey
public boolean isUniqueKey()Description copied from interface:ColumnChecks if this is a unique key column.- Specified by:
isUniqueKeyin interfaceColumn- Returns:
- true if column flags contain FIELD_FLAG_UNIQUE_KEY
-
isPartKey
public boolean isPartKey()Description copied from interface:ColumnChecks if this column is a part of key.
-