public class ColumnInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package 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(ColumnType type) |
Modifier and Type | Method and Description |
---|---|
static ColumnInformation |
create(java.lang.String name,
ColumnType type)
Constructor.
|
java.lang.String |
getCatalog() |
short |
getCharsetNumber() |
ColumnType |
getColumnType() |
java.lang.String |
getDb() |
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() |
void |
setUnsigned() |
private static final int[] maxCharlen
Buffer buffer
private short charsetNumber
private long length
private ColumnType type
private byte decimals
private short flags
public ColumnInformation(ColumnType type)
public 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 getCatalog()
public java.lang.String getDb()
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 void setUnsigned()
public boolean isZeroFill()
public boolean isBinary()