|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.db.jdbc.Value
Value objects correspond to the attributes of a Record object. A Record with N attributes has N Value objects, each accessible by name or index.
A Value object has an internal type that is defined by the Schema of the parent DataSet. A Value object can be assigned a value with a data type other than its internal type if the assignment is legal. Correspondingly, a Value object can return a value of a data type other than its internal data type if the request is legal. Value types are mapped to the JDBC types given in java.sql.Types.
For implementation and usage see the Developers Guide
Record
, Serialized FormConstructor Summary | |
Value(java.sql.ResultSet rs,
int colnum,
int type)
|
Method Summary | |
java.math.BigDecimal |
asBigDecimal()
Returns the BigDecimal value of a Value object. |
java.math.BigDecimal |
asBigDecimal(int scale)
Returns the BigDecimal value of a Value object. |
boolean |
asBoolean()
Returns the boolean value of a Value object. |
byte |
asByte()
Returns the byte value of a Value object. |
byte[] |
asBytes()
Returns the byte[] value of a Value object. |
java.sql.Date |
asDate()
Returns the java.sql.Date value of a Value object. |
double |
asDouble()
Returns the double value of a Value object. |
float |
asFloat()
Returns the float value of a Value object. |
int |
asInt()
Returns the integer value of a Value object. |
long |
asLong()
Returns the long value of a Value object. |
short |
asShort()
Returns the short value of a Value object. |
java.lang.String |
asString()
Returns the String value of a Value object. |
java.sql.Time |
asTime()
Returns the java.sql.Time value of a Value object. |
java.sql.Timestamp |
asTimestamp()
Returns the java.sql.Timestamp value of a Value object. |
java.util.Date |
asUtilDate()
Returns the java.util.Date value of a Value object. |
boolean |
isBigDecimal()
Determines whether the data of this Value object is of type BigDecimal. |
boolean |
isBytes()
Determines whether the data of this Value object is of type byte[]. |
boolean |
isDate()
Determines whether the data of this Value object is of type java.sql.Date. |
boolean |
isDouble()
Determines whether the data of this Value object is of type double. |
boolean |
isFloat()
Determines whether the data of this Value object is of type float. |
boolean |
isInt()
Determines whether the data of this Value object is of type integer. |
boolean |
isLong()
Determines whether the data of this Value object is of type integer. |
boolean |
isNull()
Determines whether the data of this Value object is NULL. |
boolean |
isString()
Determines whether the data of this Value object is of type String. |
boolean |
isTime()
Determines whether the data of this Value object is of type java.sql.Time. |
boolean |
isTimestamp()
Determines whether the data of this Value object is of type java.sql.Timestamp. |
boolean |
isUtilDate()
Determines whether the data of this Value object is of type java.util.Date. |
java.lang.String |
toString()
Returns a String representation of a Value object. |
int |
type()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Value(java.sql.ResultSet rs, int colnum, int type) throws java.sql.SQLException, DataSetException
Method Detail |
public int type()
public java.lang.String toString()
public java.lang.String asString()
public java.math.BigDecimal asBigDecimal()
public boolean asBoolean() throws DataSetException
public byte asByte() throws DataSetException
public short asShort() throws DataSetException
public int asInt() throws DataSetException
public long asLong() throws DataSetException
public float asFloat() throws DataSetException
public double asDouble() throws DataSetException
public java.math.BigDecimal asBigDecimal(int scale) throws DataSetException
public java.sql.Time asTime() throws DataSetException
public java.sql.Date asDate() throws DataSetException
public java.util.Date asUtilDate() throws DataSetException
public java.sql.Timestamp asTimestamp() throws DataSetException
public byte[] asBytes() throws DataSetException
public boolean isInt()
public boolean isLong()
public boolean isFloat()
public boolean isDouble()
public boolean isDate()
public boolean isTime()
public boolean isUtilDate()
public boolean isTimestamp()
public boolean isBigDecimal()
public boolean isString()
public boolean isBytes()
public boolean isNull()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |