Top Description Methods
com.mysql.cj.xdevapi

public Interface Column

Known Direct Implementers
com.mysql.cj.xdevapi.ColumnImpl

Represents individual column of RowResult

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

character set name
getCharacterSetName
()

Get character set name for the column value.

public String

Returns:

collation name
getCollationName
()

Get collation name for the column value.

public String

Returns:

column alias
getColumnLabel
()

Get alias of this column.

public String

Returns:

column name
getColumnName
()

Get name of this column.

public int

Returns:

number of fractional digits
getFractionalDigits
()

Get number of fractional digits in this column's value.

public long

Returns:

column length
getLength
()

Get this column's length.

public String

Returns:

schema name
getSchemaName
()

Get name of Schema.

public String

Returns:

table alias
getTableLabel
()

Get alias of Table.

public String

Returns:

table name
getTableName
()

Get name of Table.

public Type

Returns:

column type
getType
()

Get this column's Type.

public boolean

Returns:

true if column flags contain FIELD_FLAG_AUTO_INCREMENT
isAutoIncrement
()

Checks if this is an auto increment column.

public boolean

Returns:

false if column flags contain FIELD_FLAG_NOT_NULL
isNullable
()

Checks if column can contain null values.

public boolean

Returns:

true if value represents a signed number
isNumberSigned
()

Checks if value represents a signed number.

public boolean

Returns:

true if column flags contain FIELD_FLAG_ZEROFILL or field type is CHAR
isPadded
()

Checks if the value has a padding.

public boolean

Returns:

true if column flags contain FIELD_FLAG_MULTIPLE_KEY
isPartKey
()

Checks if this column is a part of key.

public boolean

Returns:

true if column flags contain FIELD_FLAG_PRIMARY_KEY
isPrimaryKey
()

Checks if this is a primary key column.

public boolean

Returns:

true if column flags contain FIELD_FLAG_UNIQUE_KEY
isUniqueKey
()

Checks if this is a unique key column.

Method Detail

getCharacterSetNameback to summary
public String getCharacterSetName()

Get character set name for the column value.

Returns:String

character set name

getCollationNameback to summary
public String getCollationName()

Get collation name for the column value.

Returns:String

collation name

getColumnLabelback to summary
public String getColumnLabel()

Get alias of this column.

Returns:String

column alias

getColumnNameback to summary
public String getColumnName()

Get name of this column.

Returns:String

column name

getFractionalDigitsback to summary
public int getFractionalDigits()

Get number of fractional digits in this column's value.

Returns:int

number of fractional digits

getLengthback to summary
public long getLength()

Get this column's length.

Returns:long

column length

getSchemaNameback to summary
public String getSchemaName()

Get name of Schema.

Returns:String

schema name

getTableLabelback to summary
public String getTableLabel()

Get alias of Table.

Returns:String

table alias

getTableNameback to summary
public String getTableName()

Get name of Table.

Returns:String

table name

getTypeback to summary
public Type getType()

Get this column's Type.

Returns:Type

column type

isAutoIncrementback to summary
public boolean isAutoIncrement()

Checks if this is an auto increment column.

Returns:boolean

true if column flags contain FIELD_FLAG_AUTO_INCREMENT

isNullableback to summary
public boolean isNullable()

Checks if column can contain null values.

Returns:boolean

false if column flags contain FIELD_FLAG_NOT_NULL

isNumberSignedback to summary
public boolean isNumberSigned()

Checks if value represents a signed number.

Returns:boolean

true if value represents a signed number

isPaddedback to summary
public boolean isPadded()

Checks if the value has a padding.

Returns:boolean

true if column flags contain FIELD_FLAG_ZEROFILL or field type is CHAR

isPartKeyback to summary
public boolean isPartKey()

Checks if this column is a part of key.

Returns:boolean

true if column flags contain FIELD_FLAG_MULTIPLE_KEY

isPrimaryKeyback to summary
public boolean isPrimaryKey()

Checks if this is a primary key column.

Returns:boolean

true if column flags contain FIELD_FLAG_PRIMARY_KEY

isUniqueKeyback to summary
public boolean isUniqueKey()

Checks if this is a unique key column.

Returns:boolean

true if column flags contain FIELD_FLAG_UNIQUE_KEY