IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

com.ibm.db2.wrapper
Class RequestConstant

java.lang.Object
  extended bycom.ibm.db2.wrapper.Data
      extended bycom.ibm.db2.wrapper.RequestConstant

public final class RequestConstant
extends Data

The RequestConstant class describes a constant that is used in a query expression during query planning. The RequestExp.getValue method returns an instance of the RequestConstant class.

Since:
IBM DB2 Information Integrator Version 8.2

Field Summary
 
Fields inherited from class com.ibm.db2.wrapper.Data
BLOB, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, NONE, SHORT, SQL_NO_NULLS, SQL_NULLABLE, SQL_NULLABLE_UNKNOWN, TIME, TIMESTAMP, VARCHAR
 
Method Summary
 short getCodepage()
          Retrieve the code page for character data types.
protected  byte[] getData()
          Retrieve the data buffer in an internal format.
 short getDataType()
          Retrieve the data type.
 boolean getForBitData()
          Retrieve the FOR BIT DATA flag.
 int getMaximumLength()
          Retrieve the maximum length for the data type.
 java.lang.String getName()
          Retrieve the name of the constant, if defined.
 short getNullIndicator()
          Retrieve the null indicator.
 byte getPrecision()
          Retrieve the precision for numeric data types.
 byte getScale()
          Retrieve the scale for numeric data types.
 boolean isDataNull()
          Indicate whether the constant is null.
 
Methods inherited from class com.ibm.db2.wrapper.Data
getBigDecimal, getByte, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCodepage

public short getCodepage()
Retrieve the code page for character data types.

Returns:
The code page.
Since:
IBM DB2 Information Integrator Version 8.2

getData

protected byte[] getData()
Retrieve the data buffer in an internal format.

Specified by:
getData in class Data
Returns:
The data buffer.
Since:
IBM DB2 Information Integrator Version 8.2

getDataType

public short getDataType()
Retrieve the data type.

Specified by:
getDataType in class Data
Returns:
The data type.
Since:
IBM DB2 Information Integrator Version 8.2

getForBitData

public boolean getForBitData()
Retrieve the FOR BIT DATA flag.

Specified by:
getForBitData in class Data
Returns:
The FOR BIT DATA flag.
Since:
IBM DB2 Information Integrator Version 8.2

getMaximumLength

public int getMaximumLength()
Retrieve the maximum length for the data type.

Returns:
The maximum length.
Since:
IBM DB2 Information Integrator Version 8.2

getName

public java.lang.String getName()
Retrieve the name of the constant, if defined.

Returns:
The constant name.
Since:
IBM DB2 Information Integrator Version 8.2

getNullIndicator

public short getNullIndicator()
Retrieve the null indicator.

Returns:
The null indicator which is Data.SQL_NULLABLE or Data.SQL_NO_NULLS
Since:
IBM DB2 Information Integrator Version 8.2

getPrecision

public byte getPrecision()
Retrieve the precision for numeric data types.

Returns:
The precision.
Since:
IBM DB2 Information Integrator Version 8.2

getScale

public byte getScale()
Retrieve the scale for numeric data types.

Returns:
The scale.
Since:
IBM DB2 Information Integrator Version 8.2

isDataNull

public boolean isDataNull()
Indicate whether the constant is null.

Returns:
true if the constant is null, false otherwise.
Since:
IBM DB2 Information Integrator Version 8.2

IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

(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.