public abstract class AbstractValueObject extends Object implements ValueObject
| Modifier and Type | Field and Description |
|---|---|
protected MySQLType |
dataType |
TINYINT1_IS_BIT, YEAR_IS_DATE_TYPE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValueObject(byte[] rawBytes,
MySQLType dataType) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getBigDecimal() |
BigInteger |
getBigInteger() |
InputStream |
getBinaryInputStream() |
Blob |
getBlob() |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes() |
Clob |
getClob() |
Date |
getDate(Calendar cal) |
int |
getDisplayLength() |
double |
getDouble() |
float |
getFloat() |
InputStream |
getInputStream() |
int |
getInt() |
long |
getLong() |
abstract Object |
getObject(int datatypeMappingFlags,
Calendar cal) |
short |
getShort() |
String |
getString() |
Time |
getTime(Calendar cal) |
Timestamp |
getTimestamp(Calendar cal) |
boolean |
isNull() |
protected final MySQLType dataType
protected AbstractValueObject(byte[] rawBytes,
MySQLType dataType)
public String getString()
getString in interface ValueObjectpublic long getLong()
getLong in interface ValueObjectpublic int getInt()
getInt in interface ValueObjectpublic short getShort()
getShort in interface ValueObjectpublic byte getByte()
getByte in interface ValueObjectpublic byte[] getBytes()
getBytes in interface ValueObjectpublic float getFloat()
getFloat in interface ValueObjectpublic double getDouble()
getDouble in interface ValueObjectpublic BigDecimal getBigDecimal()
getBigDecimal in interface ValueObjectpublic BigInteger getBigInteger()
getBigInteger in interface ValueObjectpublic Date getDate(Calendar cal) throws ParseException
getDate in interface ValueObjectParseExceptionpublic Time getTime(Calendar cal) throws ParseException
getTime in interface ValueObjectParseExceptionpublic Timestamp getTimestamp(Calendar cal) throws ParseException
getTimestamp in interface ValueObjectParseExceptionpublic InputStream getInputStream()
getInputStream in interface ValueObjectpublic InputStream getBinaryInputStream()
getBinaryInputStream in interface ValueObjectpublic abstract Object getObject(int datatypeMappingFlags, Calendar cal) throws ParseException
getObject in interface ValueObjectParseExceptionpublic boolean getBoolean()
getBoolean in interface ValueObjectpublic boolean isNull()
isNull in interface ValueObjectpublic int getDisplayLength()
getDisplayLength in interface ValueObjectpublic Blob getBlob()
getBlob in interface ValueObjectpublic Clob getClob()
getClob in interface ValueObjectCopyright © 2014. All rights reserved.