Class ColumnInformation
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.read.resultset.ColumnInformation
-
- Direct Known Subclasses:
UpdatableColumnInformation
public class ColumnInformation extends Object
-
-
Constructor Summary
Constructors Constructor Description ColumnInformation(Buffer buffer)Read column information from buffer.ColumnInformation(ColumnInformation other)Constructor for extent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnInformationcreate(String name, ColumnType type)Constructor.shortgetCharsetNumber()ColumnTypegetColumnType()StringgetDatabase()bytegetDecimals()intgetDisplaySize()Get column size.shortgetFlags()longgetLength()StringgetName()StringgetOriginalName()StringgetOriginalTable()longgetPrecision()Return metadata precision.StringgetTable()booleanisBinary()booleanisBlob()booleanisMultipleKey()booleanisNotNull()booleanisPrimaryKey()booleanisSigned()booleanisUniqueKey()booleanisZeroFill()
-
-
-
Constructor Detail
-
ColumnInformation
public ColumnInformation(ColumnInformation other)
Constructor for extent.- Parameters:
other- other columnInformation
-
ColumnInformation
public ColumnInformation(Buffer buffer)
Read column information from buffer.- Parameters:
buffer- buffer
-
-
Method Detail
-
create
public static ColumnInformation create(String name, ColumnType type)
Constructor.- Parameters:
name- column nametype- column type- Returns:
- ColumnInformation
-
getDatabase
public String getDatabase()
-
getTable
public String getTable()
-
getOriginalTable
public String getOriginalTable()
-
getName
public String getName()
-
getOriginalName
public String getOriginalName()
-
getCharsetNumber
public short getCharsetNumber()
-
getLength
public long getLength()
-
getPrecision
public long getPrecision()
Return metadata precision.- Returns:
- precision
-
getDisplaySize
public int getDisplaySize()
Get column size.- Returns:
- size
-
getDecimals
public byte getDecimals()
-
getColumnType
public ColumnType getColumnType()
-
getFlags
public short getFlags()
-
isSigned
public boolean isSigned()
-
isNotNull
public boolean isNotNull()
-
isPrimaryKey
public boolean isPrimaryKey()
-
isUniqueKey
public boolean isUniqueKey()
-
isMultipleKey
public boolean isMultipleKey()
-
isBlob
public boolean isBlob()
-
isZeroFill
public boolean isZeroFill()
-
isBinary
public boolean isBinary()
-
-