public class ColumnDefinitionPacket extends Object implements com.singlestore.jdbc.client.Column, com.singlestore.jdbc.message.ServerMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
charset |
protected long |
columnLength |
protected com.singlestore.jdbc.client.DataType |
dataType |
protected byte |
decimals |
protected String |
extTypeFormat |
protected String |
extTypeName |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnDefinitionPacket(ColumnDefinitionPacket prev,
boolean useAliasAsName) |
|
ColumnDefinitionPacket(com.singlestore.jdbc.client.ReadableByteBuf buf,
int charset,
long columnLength,
com.singlestore.jdbc.client.DataType dataType,
byte decimals,
int flags,
int[] stringPos,
String extTypeName,
String extTypeFormat,
boolean useAliasAsName)
Column definition constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCatalog()
get column catalog
|
String |
getColumnAlias()
retrieve column alias if any
|
long |
getColumnLength()
column maximum length if known
|
String |
getColumnName()
retrieve column name if any
|
byte |
getDecimals()
get number of decimal
|
int |
getDisplaySize()
get display size
|
String |
getExtTypeFormat()
Get extended type format.
|
String |
getExtTypeName()
retrieve extended metadata name if any
|
int |
getFlags()
Retrieve metadata flag
|
String |
getSchema()
get column schema
|
String |
getTable()
retrieve table name if any
|
String |
getTableAlias()
retrieve table alias if any
|
com.singlestore.jdbc.client.DataType |
getType()
server data type
|
boolean |
hasDefault()
Column has a default value
|
int |
hashCode() |
boolean |
isAutoIncrement()
Column autoincrement
|
boolean |
isBinary()
indicate if column is of binary type.
|
boolean |
isPrimaryKey()
Is column a primary key
|
boolean |
isSigned()
Is column signed (for number only)
|
protected final int charset
protected final long columnLength
protected final com.singlestore.jdbc.client.DataType dataType
protected final byte decimals
protected final String extTypeName
protected final String extTypeFormat
public ColumnDefinitionPacket(com.singlestore.jdbc.client.ReadableByteBuf buf,
int charset,
long columnLength,
com.singlestore.jdbc.client.DataType dataType,
byte decimals,
int flags,
int[] stringPos,
String extTypeName,
String extTypeFormat,
boolean useAliasAsName)
buf - buffercharset - charsetcolumnLength - maxium column lengthdataType - data typedecimals - decimal lengthflags - flagsstringPos - string position indexesextTypeName - extended type nameextTypeFormat - extended type formatuseAliasAsName - use alias as nameprotected ColumnDefinitionPacket(ColumnDefinitionPacket prev, boolean useAliasAsName)
public String getCatalog()
com.singlestore.jdbc.client.ColumngetCatalog in interface com.singlestore.jdbc.client.Columnpublic String getSchema()
com.singlestore.jdbc.client.ColumngetSchema in interface com.singlestore.jdbc.client.Columnpublic String getTableAlias()
com.singlestore.jdbc.client.ColumngetTableAlias in interface com.singlestore.jdbc.client.Columnpublic String getTable()
com.singlestore.jdbc.client.ColumngetTable in interface com.singlestore.jdbc.client.Columnpublic String getColumnAlias()
com.singlestore.jdbc.client.ColumngetColumnAlias in interface com.singlestore.jdbc.client.Columnpublic String getColumnName()
com.singlestore.jdbc.client.ColumngetColumnName in interface com.singlestore.jdbc.client.Columnpublic long getColumnLength()
com.singlestore.jdbc.client.ColumngetColumnLength in interface com.singlestore.jdbc.client.Columnpublic com.singlestore.jdbc.client.DataType getType()
com.singlestore.jdbc.client.ColumngetType in interface com.singlestore.jdbc.client.Columnpublic byte getDecimals()
com.singlestore.jdbc.client.ColumngetDecimals in interface com.singlestore.jdbc.client.Columnpublic boolean isSigned()
com.singlestore.jdbc.client.ColumnisSigned in interface com.singlestore.jdbc.client.Columnpublic int getDisplaySize()
com.singlestore.jdbc.client.ColumngetDisplaySize in interface com.singlestore.jdbc.client.Columnpublic boolean isPrimaryKey()
com.singlestore.jdbc.client.ColumnisPrimaryKey in interface com.singlestore.jdbc.client.Columnpublic boolean isAutoIncrement()
com.singlestore.jdbc.client.ColumnisAutoIncrement in interface com.singlestore.jdbc.client.Columnpublic boolean hasDefault()
com.singlestore.jdbc.client.ColumnhasDefault in interface com.singlestore.jdbc.client.Columnpublic boolean isBinary()
com.singlestore.jdbc.client.ColumnisBinary in interface com.singlestore.jdbc.client.Columnpublic int getFlags()
com.singlestore.jdbc.client.ColumngetFlags in interface com.singlestore.jdbc.client.Columnpublic String getExtTypeName()
com.singlestore.jdbc.client.ColumngetExtTypeName in interface com.singlestore.jdbc.client.Columnpublic String getExtTypeFormat()
com.singlestore.jdbc.client.ColumngetExtTypeFormat in interface com.singlestore.jdbc.client.ColumnCopyright © 2025 SingleStore. All rights reserved.