public abstract class RowProtocol extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BIT_LAST_FIELD_NOT_NULL |
static int |
BIT_LAST_FIELD_NULL |
static int |
BIT_LAST_ZERO_DATE |
byte[] |
buf |
protected int |
index |
static Pattern |
isIntegerRegex |
int |
lastValueNull |
int |
length |
protected int |
maxFieldSize |
protected static int |
NULL_LENGTH |
protected Options |
options |
int |
pos |
static int |
TINYINT1_IS_BIT |
static int |
YEAR_IS_DATE_TYPE |
Constructor and Description |
---|
RowProtocol(int maxFieldSize,
Options options) |
Modifier and Type | Method and Description |
---|---|
protected int |
extractNanos(String timestring) |
abstract BigDecimal |
getInternalBigDecimal(ColumnInformation columnInfo) |
abstract BigInteger |
getInternalBigInteger(ColumnInformation columnInfo) |
abstract boolean |
getInternalBoolean(ColumnInformation columnInfo) |
abstract byte |
getInternalByte(ColumnInformation columnInfo) |
abstract Date |
getInternalDate(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone) |
abstract double |
getInternalDouble(ColumnInformation columnInfo) |
abstract float |
getInternalFloat(ColumnInformation columnInfo) |
abstract int |
getInternalInt(ColumnInformation columnInfo) |
abstract long |
getInternalLong(ColumnInformation columnInfo) |
protected long |
getInternalMediumInt(ColumnInformation columnInfo) |
abstract Object |
getInternalObject(ColumnInformation columnInfo,
int dataTypeMappingFlags,
TimeZone timeZone) |
abstract short |
getInternalShort(ColumnInformation columnInfo) |
protected int |
getInternalSmallInt(ColumnInformation columnInfo) |
abstract String |
getInternalString(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone) |
abstract Time |
getInternalTime(ColumnInformation columnInfo,
Calendar cal,
TimeZone timeZone) |
abstract Timestamp |
getInternalTimestamp(ColumnInformation columnInfo,
Calendar userCalendar,
TimeZone timeZone) |
abstract String |
getInternalTimeString(ColumnInformation columnInfo) |
protected int |
getInternalTinyInt(ColumnInformation columnInfo) |
int |
getLengthMaxFieldSize() |
int |
getMaxFieldSize() |
abstract boolean |
isBinaryEncoded() |
boolean |
lastValueWasNull() |
protected long |
parseBit() |
protected void |
rangeCheck(Object className,
long minValue,
long maxValue,
BigDecimal value,
ColumnInformation columnInfo) |
protected void |
rangeCheck(Object className,
long minValue,
long maxValue,
long value,
ColumnInformation columnInfo) |
void |
resetRow(byte[] buf) |
abstract void |
setPosition(int position) |
boolean |
wasNull()
Reports whether the last column read had a value of Null.
|
protected String |
zeroFillingIfNeeded(String value,
ColumnInformation columnInformation) |
public static final int BIT_LAST_FIELD_NOT_NULL
public static final int BIT_LAST_FIELD_NULL
public static final int BIT_LAST_ZERO_DATE
public static final int TINYINT1_IS_BIT
public static final int YEAR_IS_DATE_TYPE
public static final Pattern isIntegerRegex
public int lastValueNull
protected static final int NULL_LENGTH
protected final int maxFieldSize
public byte[] buf
public int pos
public int length
protected int index
protected final Options options
public RowProtocol(int maxFieldSize, Options options)
public void resetRow(byte[] buf)
public abstract void setPosition(int position)
public int getLengthMaxFieldSize()
public int getMaxFieldSize()
public abstract String getInternalString(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
SQLException
public abstract int getInternalInt(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract long getInternalLong(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract float getInternalFloat(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract double getInternalDouble(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract BigDecimal getInternalBigDecimal(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract Date getInternalDate(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
SQLException
public abstract Time getInternalTime(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
SQLException
public abstract Timestamp getInternalTimestamp(ColumnInformation columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException
SQLException
public abstract Object getInternalObject(ColumnInformation columnInfo, int dataTypeMappingFlags, TimeZone timeZone) throws SQLException
SQLException
public abstract boolean getInternalBoolean(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract byte getInternalByte(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract short getInternalShort(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract String getInternalTimeString(ColumnInformation columnInfo)
public abstract BigInteger getInternalBigInteger(ColumnInformation columnInfo) throws SQLException
SQLException
public abstract boolean isBinaryEncoded()
public boolean lastValueWasNull()
protected String zeroFillingIfNeeded(String value, ColumnInformation columnInformation)
protected int getInternalTinyInt(ColumnInformation columnInfo)
protected long parseBit()
protected int getInternalSmallInt(ColumnInformation columnInfo)
protected long getInternalMediumInt(ColumnInformation columnInfo)
protected void rangeCheck(Object className, long minValue, long maxValue, BigDecimal value, ColumnInformation columnInfo) throws SQLException
SQLException
protected void rangeCheck(Object className, long minValue, long maxValue, long value, ColumnInformation columnInfo) throws SQLException
SQLException
protected int extractNanos(String timestring) throws SQLException
SQLException
public boolean wasNull()
Copyright © 2017 mariadb. All rights reserved.