Class TextRowProtocol
java.lang.Object
org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.RowProtocol
org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.TextRowProtocol
-
Field Summary
Fields inherited from class org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.RowProtocol
BIT_LAST_FIELD_NOT_NULL, BIT_LAST_FIELD_NULL, BIT_LAST_ZERO_DATE, buf, index, isIntegerRegex, lastValueNull, length, maxFieldSize, NULL_LENGTH, options, pos, TEXT_LOCAL_DATE_TIME, TEXT_OFFSET_DATE_TIME, TEXT_ZONED_DATE_TIME, TINYINT1_IS_BIT, YEAR_IS_DATE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInternalBigDecimal(ColumnInformation columnInfo) Get BigDecimal from raw text format.getInternalBigInteger(ColumnInformation columnInfo) Get BigInteger format from raw text format.booleangetInternalBoolean(ColumnInformation columnInfo) Get boolean from raw text format.bytegetInternalByte(ColumnInformation columnInfo) Get byte from raw text format.getInternalDate(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) Get date from raw text format.doublegetInternalDouble(ColumnInformation columnInfo) Get double from raw text format.floatgetInternalFloat(ColumnInformation columnInfo) Get float from raw text format.intgetInternalInt(ColumnInformation columnInfo) Get int from raw text format.getInternalLocalDate(ColumnInformation columnInfo, TimeZone timeZone) Get LocalDate format from raw text format.getInternalLocalTime(ColumnInformation columnInfo, TimeZone timeZone) Get LocalTime format from raw text format.longgetInternalLong(ColumnInformation columnInfo) Get long from raw text format.getInternalObject(ColumnInformation columnInfo, TimeZone timeZone) Get Object from raw text format.getInternalOffsetTime(ColumnInformation columnInfo, TimeZone timeZone) Get OffsetTime format from raw text format.shortgetInternalShort(ColumnInformation columnInfo) Get short from raw text format.getInternalString(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) Get String from raw text format.getInternalTime(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) Get time from raw text format.getInternalTimestamp(ColumnInformation columnInfo, Calendar userCalendar, TimeZone timeZone) Get timestamp from raw text format.getInternalTimeString(ColumnInformation columnInfo) Get Time in string format from raw text format.getInternalZonedDateTime(ColumnInformation columnInfo, Class clazz, TimeZone timeZone) Get ZonedDateTime format from raw text format.booleanIndicate if data is binary encoded.voidsetPosition(int newIndex) Set length and pos indicator to asked index.Methods inherited from class org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.RowProtocol
extractNanos, getInternalMediumInt, getInternalSmallInt, getInternalTinyInt, getLengthMaxFieldSize, getMaxFieldSize, lastValueWasNull, parseBit, rangeCheck, rangeCheck, resetRow, wasNull, zeroFillingIfNeeded
-
Constructor Details
-
TextRowProtocol
Constructor.- Parameters:
maxFieldSize- max field sizeoptions- connection options
-
-
Method Details
-
setPosition
public void setPosition(int newIndex) Set length and pos indicator to asked index.- Specified by:
setPositionin classRowProtocol- Parameters:
newIndex- index (0 is first).
-
getInternalString
public String getInternalString(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException Get String from raw text format.- Specified by:
getInternalStringin classRowProtocol- Parameters:
columnInfo- column informationcal- calendartimeZone- time zone- Returns:
- String value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalInt
Get int from raw text format.- Specified by:
getInternalIntin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- int value
- Throws:
SQLException- if column type doesn't permit conversion or not in Integer range
-
getInternalLong
Get long from raw text format.- Specified by:
getInternalLongin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- long value
- Throws:
SQLException- if column type doesn't permit conversion or not in Long range (unsigned)
-
getInternalFloat
Get float from raw text format.- Specified by:
getInternalFloatin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- float value
- Throws:
SQLException- if column type doesn't permit conversion or not in Float range
-
getInternalDouble
Get double from raw text format.- Specified by:
getInternalDoublein classRowProtocol- Parameters:
columnInfo- column information- Returns:
- double value
- Throws:
SQLException- if column type doesn't permit conversion or not in Double range (unsigned)
-
getInternalBigDecimal
Get BigDecimal from raw text format.- Specified by:
getInternalBigDecimalin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- BigDecimal value
-
getInternalDate
public Date getInternalDate(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException Get date from raw text format.- Specified by:
getInternalDatein classRowProtocol- Parameters:
columnInfo- column informationcal- calendartimeZone- time zone- Returns:
- date value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalTime
public Time getInternalTime(ColumnInformation columnInfo, Calendar cal, TimeZone timeZone) throws SQLException Get time from raw text format.- Specified by:
getInternalTimein classRowProtocol- Parameters:
columnInfo- column informationcal- calendartimeZone- time zone- Returns:
- time value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalTimestamp
public Timestamp getInternalTimestamp(ColumnInformation columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException Get timestamp from raw text format.- Specified by:
getInternalTimestampin classRowProtocol- Parameters:
columnInfo- column informationuserCalendar- calendartimeZone- time zone- Returns:
- timestamp value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalObject
public Object getInternalObject(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException Get Object from raw text format.- Specified by:
getInternalObjectin classRowProtocol- Parameters:
columnInfo- column informationtimeZone- time zone- Returns:
- Object value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalBoolean
Get boolean from raw text format.- Specified by:
getInternalBooleanin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- boolean value
-
getInternalByte
Get byte from raw text format.- Specified by:
getInternalBytein classRowProtocol- Parameters:
columnInfo- column information- Returns:
- byte value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalShort
Get short from raw text format.- Specified by:
getInternalShortin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- short value
- Throws:
SQLException- if column type doesn't permit conversion or value is not in Short range
-
getInternalTimeString
Get Time in string format from raw text format.- Specified by:
getInternalTimeStringin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- String representation of time
-
getInternalBigInteger
Get BigInteger format from raw text format.- Specified by:
getInternalBigIntegerin classRowProtocol- Parameters:
columnInfo- column information- Returns:
- BigInteger value
-
getInternalZonedDateTime
public ZonedDateTime getInternalZonedDateTime(ColumnInformation columnInfo, Class clazz, TimeZone timeZone) throws SQLException Get ZonedDateTime format from raw text format.- Specified by:
getInternalZonedDateTimein classRowProtocol- Parameters:
columnInfo- column informationclazz- class for loggingtimeZone- time zone- Returns:
- ZonedDateTime value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalOffsetTime
public OffsetTime getInternalOffsetTime(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException Get OffsetTime format from raw text format.- Specified by:
getInternalOffsetTimein classRowProtocol- Parameters:
columnInfo- column informationtimeZone- time zone- Returns:
- OffsetTime value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalLocalTime
public LocalTime getInternalLocalTime(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException Get LocalTime format from raw text format.- Specified by:
getInternalLocalTimein classRowProtocol- Parameters:
columnInfo- column informationtimeZone- time zone- Returns:
- LocalTime value
- Throws:
SQLException- if column type doesn't permit conversion
-
getInternalLocalDate
public LocalDate getInternalLocalDate(ColumnInformation columnInfo, TimeZone timeZone) throws SQLException Get LocalDate format from raw text format.- Specified by:
getInternalLocalDatein classRowProtocol- Parameters:
columnInfo- column informationtimeZone- time zone- Returns:
- LocalDate value
- Throws:
SQLException- if column type doesn't permit conversion
-
isBinaryEncoded
public boolean isBinaryEncoded()Indicate if data is binary encoded.- Specified by:
isBinaryEncodedin classRowProtocol- Returns:
- always false.
-