public class MariaDbValueObject extends Object implements ValueObject
TINYINT1_IS_BIT, YEAR_IS_DATE_TYPE| Constructor and Description |
|---|
MariaDbValueObject(byte[] rawBytes,
ColumnInformation columnInfo,
boolean isBinaryEncoded,
Options options)
Constructor.
|
MariaDbValueObject(byte[] rawBytes,
ColumnInformation columnInfo,
Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getBigDecimal()
Get BigDecimal from rax data.
|
BigInteger |
getBigInteger()
Get BigInteger from raw data.
|
InputStream |
getBinaryInputStream()
Get binaryInputStream value from raw data.
|
Blob |
getBlob()
Get Blob from raw data
|
boolean |
getBoolean()
Get boolean value from raw data.
|
byte |
getByte()
Get byte from raw data.
|
byte[] |
getBytes() |
Clob |
getClob()
Get Clob from raw data
|
Date |
getDate(Calendar cal)
Get date from raw data.
|
int |
getDisplayLength()
Data length.
|
double |
getDouble()
Get double value from raw data.
|
float |
getFloat()
Get float from raw data.
|
InputStream |
getInputStream()
Get inputStream value from raw data.
|
int |
getInt()
Get int from raw data.
|
long |
getLong()
Get long from raw data.
|
Object |
getObject(int dataTypeMappingFlags,
Calendar cal)
Get object value.
|
short |
getShort()
Get short from raw data.
|
String |
getString() |
String |
getString(Calendar cal)
Get String from raw data.
|
Time |
getTime(Calendar cal)
Get time from raw data.
|
Timestamp |
getTimestamp(Calendar cal)
Get timeStamp from raw data.
|
boolean |
isNull()
Is data null.
|
public MariaDbValueObject(byte[] rawBytes,
ColumnInformation columnInfo,
Options options)
rawBytes - raw datacolumnInfo - column informationoptions - session optionspublic MariaDbValueObject(byte[] rawBytes,
ColumnInformation columnInfo,
boolean isBinaryEncoded,
Options options)
rawBytes - raw datacolumnInfo - column informationisBinaryEncoded - is text or binary encoded.options - session optionspublic String getString() throws SQLException
getString in interface ValueObjectSQLExceptionpublic String getString(Calendar cal) throws SQLException
getString in interface ValueObjectcal - session calendarSQLExceptionpublic byte getByte()
throws SQLException
getByte in interface ValueObjectSQLExceptionpublic short getShort()
throws SQLException
getShort in interface ValueObjectSQLExceptionpublic int getInt()
throws SQLException
getInt in interface ValueObjectSQLExceptionpublic long getLong()
throws SQLException
getLong in interface ValueObjectSQLExceptionpublic float getFloat()
throws SQLException
getFloat in interface ValueObjectSQLExceptionpublic double getDouble()
throws SQLException
getDouble in interface ValueObjectSQLExceptionpublic BigDecimal getBigDecimal() throws SQLException
getBigDecimal in interface ValueObjectSQLExceptionpublic byte[] getBytes()
getBytes in interface ValueObjectpublic BigInteger getBigInteger() throws SQLException
getBigInteger in interface ValueObjectSQLExceptionpublic Date getDate(Calendar cal) throws ParseException
getDate in interface ValueObjectcal - session calendarParseException - if raw data cannot be parsepublic Time getTime(Calendar cal) throws ParseException
getTime in interface ValueObjectcal - session calendarParseException - if raw data cannot be parsepublic Timestamp getTimestamp(Calendar cal) throws ParseException
getTimestamp in interface ValueObjectcal - session calendar.ParseException - if text value cannot be parsepublic InputStream getInputStream()
getInputStream in interface ValueObjectpublic InputStream getBinaryInputStream()
getBinaryInputStream in interface ValueObjectpublic boolean getBoolean()
getBoolean in interface ValueObjectpublic boolean isNull()
isNull in interface ValueObjectpublic int getDisplayLength()
public Blob getBlob()
getBlob in interface ValueObjectpublic Clob getClob()
public Object getObject(int dataTypeMappingFlags, Calendar cal) throws SQLException, ParseException
getObject in interface ValueObjectdataTypeMappingFlags - dataTypeflag (year is date or int, bit boolean or int, ...)cal - session calendarParseException - if data cannot be parseSQLExceptionCopyright © 2015. All rights reserved.