Package org.mariadb.jdbc.message.server
Class ColumnDefinitionPacket
java.lang.Object
org.mariadb.jdbc.message.server.ColumnDefinitionPacket
- All Implemented Interfaces:
ServerMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReadableByteBuf
private final int
private final DataType
private final byte
private final String
private final int
private final long
private final int[]
private boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionColumnDefinitionPacket
(ReadableByteBuf buf, boolean extendedInfo) private
ColumnDefinitionPacket
(ReadableByteBuf buf, long length, DataType dataType, int[] stringPos) -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnDefinitionPacket
boolean
int
getColumnType
(Configuration conf) byte
Codec<?>
getDefaultCodec
(Configuration conf) int
int
getFlags()
long
long
Return metadata precision.getTable()
getType()
boolean
int
hashCode()
boolean
boolean
isBinary()
boolean
boolean
isSigned()
void
-
Field Details
-
buf
-
charset
private final int charset -
length
private final long length -
dataType
-
decimals
private final byte decimals -
flags
private final int flags -
stringPos
private final int[] stringPos -
extTypeName
-
useAliasAsName
private boolean useAliasAsName
-
-
Constructor Details
-
ColumnDefinitionPacket
private ColumnDefinitionPacket(ReadableByteBuf buf, long length, DataType dataType, int[] stringPos) -
ColumnDefinitionPacket
-
-
Method Details
-
create
-
getSchema
-
getTableAlias
-
getTable
-
getColumnAlias
-
getColumn
-
getLength
public long getLength() -
getType
-
getDecimals
public byte getDecimals() -
isSigned
public boolean isSigned() -
getDisplaySize
public int getDisplaySize() -
isPrimaryKey
public boolean isPrimaryKey() -
isAutoIncrement
public boolean isAutoIncrement() -
hasDefault
public boolean hasDefault() -
isBinary
public boolean isBinary() -
getFlags
public int getFlags() -
getExtTypeName
-
getPrecision
public long getPrecision()Return metadata precision.- Returns:
- precision
-
getColumnType
-
getDefaultCodec
-
equals
-
hashCode
public int hashCode() -
useAliasAsName
public void useAliasAsName()
-