Class ColumnInformation
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.read.resultset.ColumnInformation
-
- Direct Known Subclasses:
UpdatableColumnInformation
public class ColumnInformation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Buffer
buffer
private short
charsetNumber
private byte
decimals
private short
flags
private long
length
private static int[]
maxCharlen
private ColumnType
type
-
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 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()
-
-
-
Field Detail
-
maxCharlen
private static final int[] maxCharlen
-
buffer
private final Buffer buffer
-
charsetNumber
private final short charsetNumber
-
length
private final long length
-
type
private final ColumnType type
-
decimals
private final byte decimals
-
flags
private final short flags
-
-
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(java.lang.String name, ColumnType type)
Constructor.- Parameters:
name
- column nametype
- column type- Returns:
- ColumnInformation
-
getString
private java.lang.String getString(int idx)
-
getDatabase
public java.lang.String getDatabase()
-
getTable
public java.lang.String getTable()
-
getOriginalTable
public java.lang.String getOriginalTable()
-
getName
public java.lang.String getName()
-
getOriginalName
public java.lang.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()
-
-