|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.db2.wrapper.Data
The Data class is the base class that manages cell values, constants, and parameter values. This class provides methods to convert the values from internal formats into Java standard types and objects.
Field Summary | |
static short |
BLOB
Constant that indicates a BLOB data type. |
static short |
CHAR
Constant that indicates a CHAR data type. |
static short |
CLOB
Constant that indicates a CLOB data type. |
static short |
DATE
Constant that indicates a DATE data type. |
static short |
DECIMAL
Constant that indicates a DECIMAL or NUMERIC data type. |
static short |
DOUBLE
Constant that indicates a DOUBLE data type. |
static short |
FLOAT
Constant that indicates a FLOAT data type. |
static short |
INT
Constant that indicates an INTEGER (INT) data type. |
static short |
LONG
Constant that indicates a LONG data type. |
static short |
NONE
Constant that indicates an unknown data type. |
static short |
SHORT
Constant that indicates a SHORT data type. |
static short |
SQL_NO_NULLS
Constant that indicates the column NULL status as NO NULLS. |
static short |
SQL_NULLABLE
Constant that indicates the column NULL status as NULLABLE. |
static short |
SQL_NULLABLE_UNKNOWN
Constant that indicates the column NULL status as UNKNOWN. |
static short |
TIME
Constant that indicates a TIME data type. |
static short |
TIMESTAMP
Constant that indicates a TIMESTAMP data type. |
static short |
VARCHAR
Constant that indicates a VARCHAR data type. |
Method Summary | |
java.math.BigDecimal |
getBigDecimal()
Retrieve the data as a BigDecimal instance. |
byte |
getByte()
Retrieve the data as a byte value. |
protected abstract byte[] |
getData()
Retrieve the data as a byte array. |
abstract short |
getDataType()
Retrieve the data type. |
java.sql.Date |
getDate()
Retrieve the data as a Date instance. |
double |
getDouble()
Retrieve the data as a double value. |
float |
getFloat()
Retrieve the data as a float value. |
abstract boolean |
getForBitData()
Retrieve the FOR BIT DATA flag. |
int |
getInt()
Retrieve the data as an integer (int) value. |
long |
getLong()
Retrieve the data as a long value. |
java.lang.Object |
getObject()
Retrieve the data as an Object instance. |
short |
getShort()
Retrieve the data as a short value. |
java.lang.String |
getString()
Retrieve the data as a string. |
java.sql.Time |
getTime()
Retrieve the data as a Time instance. |
java.sql.Timestamp |
getTimestamp()
Retrieve the data as a Timestamp instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short BLOB
public static final short CHAR
public static final short CLOB
public static final short DATE
public static final short DECIMAL
public static final short DOUBLE
public static final short FLOAT
public static final short INT
public static final short LONG
public static final short NONE
public static final short SHORT
public static final short SQL_NO_NULLS
public static final short SQL_NULLABLE
public static final short SQL_NULLABLE_UNKNOWN
public static final short TIME
public static final short TIMESTAMP
public static final short VARCHAR
Method Detail |
public java.math.BigDecimal getBigDecimal() throws WrapperException
WrapperException
- if the data type is not compatible.public byte getByte() throws WrapperException
WrapperException
- if the data type is not compatible.protected abstract byte[] getData() throws WrapperException
WrapperException
- - if the processing fails.public abstract short getDataType()
public java.sql.Date getDate() throws WrapperException
WrapperException
- if the data type is not compatible.public double getDouble() throws WrapperException
WrapperException
- if the data type is not compatible.public float getFloat() throws WrapperException
WrapperException
- if the data type is not compatible.public abstract boolean getForBitData()
public int getInt() throws WrapperException
WrapperException
- if the data type is not compatible.public long getLong() throws WrapperException
WrapperException
- if the data type is not compatible.public java.lang.Object getObject() throws WrapperException
WrapperException
- if the data type is not compatible.public short getShort() throws WrapperException
WrapperException
- if the data type is not compatible.public java.lang.String getString() throws WrapperException
WrapperException
- if the data type is not compatible.public java.sql.Time getTime() throws WrapperException
WrapperException
- if the data type is not compatible.public java.sql.Timestamp getTimestamp() throws WrapperException
WrapperException
- if the data type is not compatible.
|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.