public class ColumnInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Buffer |
buffer |
private short |
charsetNumber |
private byte |
decimals |
private short |
flags |
private long |
length |
private static int[] |
maxCharlen |
private ColumnType |
type |
Constructor and Description |
---|
ColumnInformation(Buffer buffer)
Read column information from buffer.
|
ColumnInformation(ColumnInformation other)
Constructor for extent.
|
Modifier and Type | Method and Description |
---|---|
static ColumnInformation |
create(java.lang.String name,
ColumnType type)
Constructor.
|
short |
getCharsetNumber() |
ColumnType |
getColumnType() |
java.lang.String |
getDatabase() |
byte |
getDecimals() |
int |
getDisplaySize()
Get column size.
|
short |
getFlags() |
long |
getLength() |
java.lang.String |
getName() |
java.lang.String |
getOriginalName() |
java.lang.String |
getOriginalTable() |
long |
getPrecision()
Return metadata precision.
|
private java.lang.String |
getString(int idx) |
java.lang.String |
getTable() |
boolean |
isBinary() |
boolean |
isBlob() |
boolean |
isMultipleKey() |
boolean |
isNotNull() |
boolean |
isPrimaryKey() |
boolean |
isSigned() |
boolean |
isUniqueKey() |
boolean |
isZeroFill() |
private static final int[] maxCharlen
private final Buffer buffer
private final short charsetNumber
private final long length
private final ColumnType type
private final byte decimals
private final short flags
public ColumnInformation(ColumnInformation other)
other
- other columnInformationpublic ColumnInformation(Buffer buffer)
buffer
- bufferpublic static ColumnInformation create(java.lang.String name, ColumnType type)
name
- column nametype
- column typeprivate java.lang.String getString(int idx)
public java.lang.String getDatabase()
public java.lang.String getTable()
public java.lang.String getOriginalTable()
public java.lang.String getName()
public java.lang.String getOriginalName()
public short getCharsetNumber()
public long getLength()
public long getPrecision()
public int getDisplaySize()
public byte getDecimals()
public ColumnType getColumnType()
public short getFlags()
public boolean isSigned()
public boolean isNotNull()
public boolean isPrimaryKey()
public boolean isUniqueKey()
public boolean isMultipleKey()
public boolean isBlob()
public boolean isZeroFill()
public boolean isBinary()