Class ColumnInformation
java.lang.Object
org.mariadb.jdbc.internal.com.read.resultset.ColumnInformation
- Direct Known Subclasses:
UpdatableColumnInformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Bufferprivate final shortprivate final byteprivate final shortprivate final longprivate static final int[]private final ColumnType -
Constructor Summary
ConstructorsConstructorDescriptionColumnInformation(Buffer buffer) Read column information from buffer.Constructor for extent. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnInformationcreate(String name, ColumnType type) Constructor.shortbyteintGet column size.shortgetFlags()longgetName()longReturn metadata precision.private StringgetString(int idx) getTable()booleanisBinary()booleanisBlob()booleanbooleanbooleanbooleanisSigned()booleanboolean
-
Field Details
-
maxCharlen
private static final int[] maxCharlen -
buffer
-
charsetNumber
private final short charsetNumber -
length
private final long length -
type
-
decimals
private final byte decimals -
flags
private final short flags
-
-
Constructor Details
-
ColumnInformation
Constructor for extent.- Parameters:
other- other columnInformation
-
ColumnInformation
Read column information from buffer.- Parameters:
buffer- buffer
-
-
Method Details
-
create
Constructor.- Parameters:
name- column nametype- column type- Returns:
- ColumnInformation
-
getString
-
getDatabase
-
getTable
-
getOriginalTable
-
getName
-
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
-
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()
-