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 ValueObject
public long getLong()
getLong
in interface ValueObject
public int getInt()
getInt
in interface ValueObject
public short getShort()
getShort
in interface ValueObject
public byte getByte()
getByte
in interface ValueObject
public byte[] getBytes()
getBytes
in interface ValueObject
public float getFloat()
getFloat
in interface ValueObject
public double getDouble()
getDouble
in interface ValueObject
public BigDecimal getBigDecimal()
getBigDecimal
in interface ValueObject
public BigInteger getBigInteger()
getBigInteger
in interface ValueObject
public Date getDate(Calendar cal) throws ParseException
getDate
in interface ValueObject
ParseException
public Time getTime(Calendar cal) throws ParseException
getTime
in interface ValueObject
ParseException
public Timestamp getTimestamp(Calendar cal) throws ParseException
getTimestamp
in interface ValueObject
ParseException
public InputStream getInputStream()
getInputStream
in interface ValueObject
public InputStream getBinaryInputStream()
getBinaryInputStream
in interface ValueObject
public abstract Object getObject(int datatypeMappingFlags, Calendar cal) throws ParseException
getObject
in interface ValueObject
ParseException
public boolean getBoolean()
getBoolean
in interface ValueObject
public boolean isNull()
isNull
in interface ValueObject
public int getDisplayLength()
getDisplayLength
in interface ValueObject
public Blob getBlob()
getBlob
in interface ValueObject
public Clob getClob()
getClob
in interface ValueObject
Copyright © 2016. All rights reserved.