Interface Column
- All Known Subinterfaces:
ColumnDecoder
- All Known Implementing Classes:
BigDecimalColumn, BitColumn, BlobColumn, ColumnDefinitionPacket, DateColumn, DoubleColumn, FloatColumn, GeometryColumn, JsonColumn, SignedBigIntColumn, SignedIntColumn, SignedMediumIntColumn, SignedSmallIntColumn, SignedTinyIntColumn, StringColumn, TimeColumn, TimestampColumn, UnsignedBigIntColumn, UnsignedIntColumn, UnsignedMediumIntColumn, UnsignedSmallIntColumn, UnsignedTinyIntColumn, UuidColumn, YearColumn
public interface Column
-
Method Summary
Modifier and TypeMethodDescriptionget column catalogretrieve column alias if anylongcolumn maximum length if knownretrieve column name if anybyteget number of decimalintget display sizeretrieve extended metadata name if anyintgetFlags()Retrieve metadata flagget column schemagetTable()retrieve table name if anyretrieve table alias if anygetType()server data typebooleanColumn has a default valuebooleanColumn autoincrementbooleanisBinary()indicate if column is of binary type.booleanIs column a primary keybooleanisSigned()Is column signed (for number only)
-
Method Details
-
getCatalog
-
getSchema
-
getTableAlias
-
getTable
-
getColumnAlias
-
getColumnName
-
getColumnLength
long getColumnLength()column maximum length if known- Returns:
- column maximum length
-
getType
-
getDecimals
byte getDecimals()get number of decimal- Returns:
- number of decimal
-
isSigned
boolean isSigned()Is column signed (for number only)- Returns:
- is signed
-
getDisplaySize
int getDisplaySize()get display size- Returns:
- display sier
-
isPrimaryKey
boolean isPrimaryKey()Is column a primary key- Returns:
- is a primary key
-
isAutoIncrement
boolean isAutoIncrement()Column autoincrement- Returns:
- true if column auto-increment
-
hasDefault
boolean hasDefault()Column has a default value- Returns:
- indicate if has a default value
-
isBinary
boolean isBinary()indicate if column is of binary type. doesn't use flag BINARY filter, because char binary and varchar binary are not binary (handle like string), but have binary flag- Returns:
- is column type binary
-
getFlags
int getFlags()Retrieve metadata flag- Returns:
- metadata flag
-
getExtTypeName
-