|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.workingdogs.village.Value
public class Value
A Value represents a single cell in a database table. In other words, it is the cross between a row and column and contains the information held there.
Constructor Summary | |
---|---|
Value(ResultSet rs,
int columnNumber,
int type)
Creates a new Value object based on the ResultSet, columnNumber and type |
Method Summary | |
---|---|
BigDecimal |
asBigDecimal()
Get the value as a BigDecimal |
BigDecimal |
asBigDecimal(int scale)
Get the value as a BigDecimal |
boolean |
asBoolean()
Get the value as a asBoolean |
Boolean |
asBooleanObj()
Get the value as a Boolean object |
byte |
asByte()
Get the value as a asByte |
Byte |
asByteObj()
Get the value as a Byte Object |
byte[] |
asBytes()
Get the value as a asBytes |
Date |
asDate()
Get the value as a asDate |
double |
asDouble()
Get the value as a asDouble |
Double |
asDoubleObj()
Get the value as a Double Object |
float |
asFloat()
Get the value as a asFloat |
Float |
asFloatObj()
Get the value as a Float Obj |
int |
asInt()
Get the value as a asInt |
Integer |
asIntegerObj()
Get the value as a Integer Ojbect |
long |
asLong()
Get the value as a asLong |
Long |
asLongObj()
Get the value as a Long Object |
short |
asShort()
Get the value as a asShort |
Short |
asShortObj()
Get the value as a Short Object |
String |
asString()
Returns the string representation of this object |
Time |
asTime()
Get the value as a asTime |
Timestamp |
asTimestamp()
Get the value as a asTimestamp |
Date |
asUtilDate()
Get the value as a asUtilDate |
boolean |
isBigDecimal()
Is the value a isBigDecimal |
boolean |
isBoolean()
Is the value a isBoolean |
boolean |
isByte()
Is the value a isByte |
boolean |
isBytes()
Is the value a isBytes |
boolean |
isDate()
Is the value a isDate |
boolean |
isDouble()
Is the value a isDouble |
boolean |
isFloat()
Is the value a isFloat |
boolean |
isInt()
Is the value a isInt |
boolean |
isLong()
Is the value a isLong |
boolean |
isNull()
Is the value a isNull |
boolean |
isShort()
Is the value a isShort |
boolean |
isString()
Is the value a isString |
boolean |
isTime()
Is the value a isTime |
boolean |
isTimestamp()
Is the value a isTimestamp |
boolean |
isUtilDate()
Is the value a isUtilDate |
String |
toString()
Returns the string representation of this object |
int |
type()
Return the type of this value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Value(ResultSet rs, int columnNumber, int type) throws SQLException
rs
- columnNumber
- type
-
SQLException
Method Detail |
---|
public String toString()
toString
in class Object
public String asString()
public BigDecimal asBigDecimal() throws DataSetException
DataSetException
public BigDecimal asBigDecimal(int scale) throws DataSetException
scale
- TODO: DOCUMENT ME!
DataSetException
public boolean asBoolean() throws DataSetException
DataSetException
public Boolean asBooleanObj() throws DataSetException
DataSetException
public int asInt() throws DataSetException
DataSetException
public Integer asIntegerObj() throws DataSetException
DataSetException
public byte asByte() throws DataSetException
DataSetException
public Byte asByteObj() throws DataSetException
DataSetException
public byte[] asBytes() throws DataSetException
DataSetException
public short asShort() throws DataSetException
DataSetException
public Short asShortObj() throws DataSetException
DataSetException
public long asLong() throws DataSetException
DataSetException
public Long asLongObj() throws DataSetException
DataSetException
public double asDouble() throws DataSetException
DataSetException
public Double asDoubleObj() throws DataSetException
DataSetException
public float asFloat() throws DataSetException
DataSetException
public Float asFloatObj() throws DataSetException
DataSetException
public Time asTime() throws DataSetException
DataSetException
public Timestamp asTimestamp() throws DataSetException
DataSetException
public Date asDate() throws DataSetException
DataSetException
public Date asUtilDate() throws DataSetException
DataSetException
public boolean isBigDecimal()
public boolean isByte()
public boolean isBytes()
public boolean isDate()
public boolean isShort()
public boolean isInt()
public boolean isLong()
public boolean isDouble()
public boolean isFloat()
public boolean isBoolean()
public boolean isNull()
public boolean isString()
public boolean isTime()
public boolean isTimestamp()
public boolean isUtilDate()
public int type()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |