接口 Column
-
- 所有已知实现类:
ColumnImpl
public interface ColumnRepresents individual column ofRowResult
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetCharacterSetName()Get character set name for the column value.StringgetCollationName()Get collation name for the column value.StringgetColumnLabel()Get alias of this column.StringgetColumnName()Get name of this column.intgetFractionalDigits()Get number of fractional digits in this column's value.longgetLength()Get this column's length.StringgetSchemaName()Get name ofSchema.StringgetTableLabel()Get alias ofTable.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.
-
-
-
方法详细资料
-
getColumnName
String getColumnName()
Get name of this column.- 返回:
- column name
-
getColumnLabel
String getColumnLabel()
Get alias of this column.- 返回:
- column alias
-
getLength
long getLength()
Get this column's length.- 返回:
- column length
-
getFractionalDigits
int getFractionalDigits()
Get number of fractional digits in this column's value.- 返回:
- number of fractional digits
-
isNumberSigned
boolean isNumberSigned()
Checks if value represents a signed number.- 返回:
- true if value represents a signed number
-
getCollationName
String getCollationName()
Get collation name for the column value.- 返回:
- collation name
-
getCharacterSetName
String getCharacterSetName()
Get character set name for the column value.- 返回:
- character set name
-
isPadded
boolean isPadded()
Checks if the value has a padding.- 返回:
- true if column flags contain FIELD_FLAG_ZEROFILL or field type is CHAR
-
isNullable
boolean isNullable()
Checks if column can contain null values.- 返回:
- false if column flags contain FIELD_FLAG_NOT_NULL
-
isAutoIncrement
boolean isAutoIncrement()
Checks if this is an auto increment column.- 返回:
- true if column flags contain FIELD_FLAG_AUTO_INCREMENT
-
isPrimaryKey
boolean isPrimaryKey()
Checks if this is a primary key column.- 返回:
- true if column flags contain FIELD_FLAG_PRIMARY_KEY
-
isUniqueKey
boolean isUniqueKey()
Checks if this is a unique key column.- 返回:
- true if column flags contain FIELD_FLAG_UNIQUE_KEY
-
isPartKey
boolean isPartKey()
Checks if this column is a part of key.- 返回:
- true if column flags contain FIELD_FLAG_MULTIPLE_KEY
-
-