Class RowProtocol
java.lang.Object
org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.RowProtocol
- Direct Known Subclasses:
BinaryRowProtocol, TextRowProtocol
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intbyte[]protected intstatic final Patternintintprotected final intprotected static final intprotected final Optionsintstatic final DateTimeFormatterstatic final DateTimeFormatterstatic final DateTimeFormatterstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intextractNanos(String timestring) abstract BigDecimalgetInternalBigDecimal(ColumnDefinition columnInfo) abstract BigIntegergetInternalBigInteger(ColumnDefinition columnInfo) abstract booleangetInternalBoolean(ColumnDefinition columnInfo) abstract bytegetInternalByte(ColumnDefinition columnInfo) abstract DategetInternalDate(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) abstract doublegetInternalDouble(ColumnDefinition columnInfo) abstract floatgetInternalFloat(ColumnDefinition columnInfo) abstract intgetInternalInt(ColumnDefinition columnInfo) abstract LocalDategetInternalLocalDate(ColumnDefinition columnInfo, TimeZone timeZone) abstract LocalTimegetInternalLocalTime(ColumnDefinition columnInfo, TimeZone timeZone) abstract longgetInternalLong(ColumnDefinition columnInfo) protected longgetInternalMediumInt(ColumnDefinition columnInfo) abstract ObjectgetInternalObject(ColumnDefinition columnInfo, TimeZone timeZone) abstract OffsetTimegetInternalOffsetTime(ColumnDefinition columnInfo, TimeZone timeZone) abstract shortgetInternalShort(ColumnDefinition columnInfo) protected intgetInternalSmallInt(ColumnDefinition columnInfo) abstract StringgetInternalString(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) abstract TimegetInternalTime(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) abstract TimestampgetInternalTimestamp(ColumnDefinition columnInfo, Calendar userCalendar, TimeZone timeZone) abstract StringgetInternalTimeString(ColumnDefinition columnInfo) protected intgetInternalTinyInt(ColumnDefinition columnInfo) abstract ZonedDateTimegetInternalZonedDateTime(ColumnDefinition columnInfo, Class clazz, TimeZone timeZone) intintabstract booleanbooleanprotected longparseBit()protected voidrangeCheck(Object className, long minValue, long maxValue, long value, ColumnDefinition columnInfo) protected voidrangeCheck(Object className, long minValue, long maxValue, BigDecimal value, ColumnDefinition columnInfo) voidresetRow(byte[] buf) abstract voidsetPosition(int position) booleanwasNull()Reports whether the last column read had a value of Null.protected StringzeroFillingIfNeeded(String value, ColumnDefinition columnDefinition)
-
Field Details
-
BIT_LAST_FIELD_NOT_NULL
public static final int BIT_LAST_FIELD_NOT_NULL- See Also:
-
BIT_LAST_FIELD_NULL
public static final int BIT_LAST_FIELD_NULL- See Also:
-
BIT_LAST_ZERO_DATE
public static final int BIT_LAST_ZERO_DATE- See Also:
-
TINYINT1_IS_BIT
public static final int TINYINT1_IS_BIT- See Also:
-
YEAR_IS_DATE_TYPE
public static final int YEAR_IS_DATE_TYPE- See Also:
-
TEXT_LOCAL_DATE_TIME
-
TEXT_OFFSET_DATE_TIME
-
TEXT_ZONED_DATE_TIME
-
isIntegerRegex
-
NULL_LENGTH
protected static final int NULL_LENGTH- See Also:
-
maxFieldSize
protected final int maxFieldSize -
options
-
lastValueNull
public int lastValueNull -
buf
public byte[] buf -
pos
public int pos -
length
public int length -
index
protected int index
-
-
Constructor Details
-
RowProtocol
-
-
Method Details
-
resetRow
public void resetRow(byte[] buf) -
setPosition
public abstract void setPosition(int position) -
getLengthMaxFieldSize
public int getLengthMaxFieldSize() -
getMaxFieldSize
public int getMaxFieldSize() -
getInternalString
public abstract String getInternalString(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalInt
- Throws:
SQLException
-
getInternalLong
- Throws:
SQLException
-
getInternalFloat
- Throws:
SQLException
-
getInternalDouble
- Throws:
SQLException
-
getInternalBigDecimal
- Throws:
SQLException
-
getInternalDate
public abstract Date getInternalDate(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalTime
public abstract Time getInternalTime(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalTimestamp
public abstract Timestamp getInternalTimestamp(ColumnDefinition columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalObject
public abstract Object getInternalObject(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalBoolean
- Throws:
SQLException
-
getInternalByte
- Throws:
SQLException
-
getInternalShort
- Throws:
SQLException
-
getInternalTimeString
-
getInternalBigInteger
- Throws:
SQLException
-
getInternalZonedDateTime
public abstract ZonedDateTime getInternalZonedDateTime(ColumnDefinition columnInfo, Class clazz, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalOffsetTime
public abstract OffsetTime getInternalOffsetTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalLocalTime
public abstract LocalTime getInternalLocalTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
getInternalLocalDate
public abstract LocalDate getInternalLocalDate(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException - Throws:
SQLException
-
isBinaryEncoded
public abstract boolean isBinaryEncoded() -
lastValueWasNull
public boolean lastValueWasNull() -
zeroFillingIfNeeded
-
getInternalTinyInt
-
parseBit
protected long parseBit() -
getInternalSmallInt
-
getInternalMediumInt
-
rangeCheck
protected void rangeCheck(Object className, long minValue, long maxValue, BigDecimal value, ColumnDefinition columnInfo) throws SQLException - Throws:
SQLException
-
rangeCheck
protected void rangeCheck(Object className, long minValue, long maxValue, long value, ColumnDefinition columnInfo) throws SQLException - Throws:
SQLException
-
extractNanos
- Throws:
SQLException
-
wasNull
public boolean wasNull()Reports whether the last column read had a value of Null. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was Null.- Returns:
- true true if the last column value read was null and false otherwise
-