public class ColumnDefinition extends Object
Constructor and Description |
---|
ColumnDefinition(Buffer buffer)
Read column information from buffer.
|
ColumnDefinition(ColumnDefinition other)
Constructor for extent.
|
Modifier and Type | Method and Description |
---|---|
static ColumnDefinition |
create(String name,
ColumnType type)
Constructor.
|
short |
getCharsetNumber() |
ColumnType |
getColumnType() |
String |
getDatabase() |
byte |
getDecimals() |
int |
getDisplaySize()
Get column size.
|
short |
getFlags() |
long |
getLength() |
String |
getName() |
String |
getOriginalName() |
String |
getOriginalTable() |
long |
getPrecision()
Return metadata precision.
|
String |
getTable() |
boolean |
isBinary() |
boolean |
isBlob() |
boolean |
isMultipleKey() |
boolean |
isNotNull() |
boolean |
isPrimaryKey() |
boolean |
isSigned() |
boolean |
isUniqueKey() |
boolean |
isZeroFill() |
public ColumnDefinition(ColumnDefinition other)
other
- other columnInformationpublic ColumnDefinition(Buffer buffer)
buffer
- bufferpublic static ColumnDefinition create(String name, ColumnType type)
name
- column nametype
- column typepublic String getDatabase()
public String getTable()
public String getOriginalTable()
public String getName()
public 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()
Copyright © 2020 mariadb.com. All rights reserved.