public class TextRowProtocol extends RowProtocol
BIT_LAST_FIELD_NOT_NULL, BIT_LAST_FIELD_NULL, BIT_LAST_ZERO_DATE, buf, complexEndPos, 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| 构造器和说明 |
|---|
TextRowProtocol(int maxFieldSize,
Options options)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Array |
getInternalArray(ColumnDefinition columnInfo,
ComplexDataType complexDataType,
Connection connection) |
BigDecimal |
getInternalBigDecimal(ColumnDefinition columnInfo)
Get BigDecimal from raw text format.
|
BigInteger |
getInternalBigInteger(ColumnDefinition columnInfo)
Get BigInteger format from raw text format.
|
BINARY_DOUBLE |
getInternalBINARY_DOUBLE() |
BINARY_FLOAT |
getInternalBINARY_FLOAT() |
boolean |
getInternalBoolean(ColumnDefinition columnInfo)
Get boolean from raw text format.
|
byte |
getInternalByte(ColumnDefinition columnInfo)
Get byte from raw text format.
|
ComplexData |
getInternalComplexCursor(ColumnDefinition columnInfo,
ComplexDataType complexDataType,
Connection connection) |
Date |
getInternalDate(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get date from raw text format.
|
double |
getInternalDouble(ColumnDefinition columnInfo)
Get double from raw text format.
|
float |
getInternalFloat(ColumnDefinition columnInfo)
Get float from raw text format.
|
int |
getInternalInt(ColumnDefinition columnInfo)
Get int from raw text format.
|
INTERVALDS |
getInternalINTERVALDS(ColumnDefinition columnInfo) |
INTERVALYM |
getInternalINTERVALYM(ColumnDefinition columnInfo) |
LocalDate |
getInternalLocalDate(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalDate format from raw text format.
|
LocalTime |
getInternalLocalTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get LocalTime format from raw text format.
|
long |
getInternalLong(ColumnDefinition columnInfo)
Get long from raw text format.
|
long |
getInternalLongUtil(ColumnDefinition columnInfo,
Object className,
long minValue,
long maxValue) |
NUMBER_FLOAT |
getInternalNumber_float(ColumnDefinition columnInfo) |
NUMBER |
getInternalNumber(ColumnDefinition columnInfo) |
Object |
getInternalObject(ColumnDefinition columnInfo,
TimeZone timeZone)
Get Object from raw text format.
|
OffsetDateTime |
getInternalOffsetDateTime(ColumnDefinition columnInfo,
TimeZone timeZone) |
OffsetTime |
getInternalOffsetTime(ColumnDefinition columnInfo,
TimeZone timeZone)
Get OffsetTime format from raw text format.
|
short |
getInternalShort(ColumnDefinition columnInfo)
Get short from raw text format.
|
String |
getInternalString(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get String from raw text format.
|
Struct |
getInternalStruct(ColumnDefinition columnInfo,
ComplexDataType complexDataType,
Connection connection) |
Time |
getInternalTime(ColumnDefinition columnInfo,
Calendar cal,
TimeZone timeZone)
Get time from raw text format.
|
Timestamp |
getInternalTimestamp(ColumnDefinition columnInfo,
Calendar userCalendar,
TimeZone timeZone)
Get timestamp from raw text format.
|
String |
getInternalTimeString(ColumnDefinition columnInfo)
Get Time in string format from raw text format.
|
ZonedDateTime |
getInternalZonedDateTime(ColumnDefinition columnInfo,
Class clazz,
TimeZone timeZone)
Get ZonedDateTime format from raw text format.
|
boolean |
isBinaryEncoded()
Indicate if data is binary encoded.
|
void |
setPosition(int newIndex,
JDBC4ResultSet resultSet)
Set length and pos indicator to asked index.
|
buildTIMETAMP, convertToZeroWithEmptyCheck, extractNanos, getBINARY_DOUBLE, getBINARY_FLOAT, getCalendarInstance, getCalendarInstanceWithTimezone, getDateFromString, getEncoding, getInternalMediumInt, getInternalSmallInt, getInternalTIMESTAMP, getInternalTIMESTAMPLTZ, getInternalTIMESTAMPTZ, getInternalTinyInt, getINTERVALDS, getINTERVALYM, getLengthMaxFieldSize, getMaxFieldSize, getNUMBER_FLOAT, getProtocol, getTimeFromString, getTimestampFromString, getTimestampPart, lastValueWasNull, parseBit, rangeCheck, rangeCheck, rangeCheck, resetRow, setProtocol, wasNull, zeroFillingIfNeeded, zgetNUMBERpublic TextRowProtocol(int maxFieldSize,
Options options)
maxFieldSize - max field sizeoptions - connection optionspublic void setPosition(int newIndex,
JDBC4ResultSet resultSet)
throws SQLException
setPosition 在类中 RowProtocolnewIndex - index (0 is first).SQLExceptionpublic String getInternalString(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalString 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic int getInternalInt(ColumnDefinition columnInfo) throws SQLException
getInternalInt 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Integer rangepublic long getInternalLong(ColumnDefinition columnInfo) throws SQLException
getInternalLong 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Long range (unsigned)public long getInternalLongUtil(ColumnDefinition columnInfo, Object className, long minValue, long maxValue) throws SQLException
SQLExceptionpublic float getInternalFloat(ColumnDefinition columnInfo) throws SQLException
getInternalFloat 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Float rangepublic double getInternalDouble(ColumnDefinition columnInfo) throws SQLException
getInternalDouble 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or not in Double range (unsigned)public BigDecimal getInternalBigDecimal(ColumnDefinition columnInfo) throws SQLException
getInternalBigDecimal 在类中 RowProtocolcolumnInfo - column informationSQLExceptionpublic Date getInternalDate(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalDate 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Time getInternalTime(ColumnDefinition columnInfo, Calendar cal, TimeZone timeZone) throws SQLException
getInternalTime 在类中 RowProtocolcolumnInfo - column informationcal - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Timestamp getInternalTimestamp(ColumnDefinition columnInfo, Calendar userCalendar, TimeZone timeZone) throws SQLException
getInternalTimestamp 在类中 RowProtocolcolumnInfo - column informationuserCalendar - calendartimeZone - time zoneSQLException - if column type doesn't permit conversionpublic Array getInternalArray(ColumnDefinition columnInfo, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalArray 在类中 RowProtocolSQLExceptionpublic Struct getInternalStruct(ColumnDefinition columnInfo, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalStruct 在类中 RowProtocolSQLExceptionpublic ComplexData getInternalComplexCursor(ColumnDefinition columnInfo, ComplexDataType complexDataType, Connection connection) throws SQLException
getInternalComplexCursor 在类中 RowProtocolSQLExceptionpublic Object getInternalObject(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalObject 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic boolean getInternalBoolean(ColumnDefinition columnInfo) throws SQLException
getInternalBoolean 在类中 RowProtocolcolumnInfo - column informationSQLExceptionpublic byte getInternalByte(ColumnDefinition columnInfo) throws SQLException
getInternalByte 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversionpublic short getInternalShort(ColumnDefinition columnInfo) throws SQLException
getInternalShort 在类中 RowProtocolcolumnInfo - column informationSQLException - if column type doesn't permit conversion or value is not in Short rangepublic String getInternalTimeString(ColumnDefinition columnInfo)
getInternalTimeString 在类中 RowProtocolcolumnInfo - column informationpublic BigInteger getInternalBigInteger(ColumnDefinition columnInfo)
getInternalBigInteger 在类中 RowProtocolcolumnInfo - column informationpublic ZonedDateTime getInternalZonedDateTime(ColumnDefinition columnInfo, Class clazz, TimeZone timeZone) throws SQLException
getInternalZonedDateTime 在类中 RowProtocolcolumnInfo - column informationclazz - class for loggingtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic OffsetTime getInternalOffsetTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetTime 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic OffsetDateTime getInternalOffsetDateTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalOffsetDateTime 在类中 RowProtocolSQLExceptionpublic LocalTime getInternalLocalTime(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalTime 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic LocalDate getInternalLocalDate(ColumnDefinition columnInfo, TimeZone timeZone) throws SQLException
getInternalLocalDate 在类中 RowProtocolcolumnInfo - column informationtimeZone - time zoneSQLException - if column type doesn't permit conversionpublic boolean isBinaryEncoded()
isBinaryEncoded 在类中 RowProtocolpublic NUMBER getInternalNumber(ColumnDefinition columnInfo)
public NUMBER_FLOAT getInternalNumber_float(ColumnDefinition columnInfo)
public BINARY_DOUBLE getInternalBINARY_DOUBLE()
public BINARY_FLOAT getInternalBINARY_FLOAT()
public INTERVALDS getInternalINTERVALDS(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALDS 在类中 RowProtocolSQLExceptionpublic INTERVALYM getInternalINTERVALYM(ColumnDefinition columnInfo) throws SQLException
getInternalINTERVALYM 在类中 RowProtocolSQLExceptionCopyright © 2024 oceanbase.com. All rights reserved.