|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.bpe.api.QueryColumnInfo
public class QueryColumnInfo
Provides information on the columns of a query result set. In the API, this class is solely used to provide symbolic values for the column type specifications.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static short |
TYPE_BINARY
States that the values in the column are binares. |
static short |
TYPE_BOOLEAN
States that the values in the column are booleans. |
static short |
TYPE_DECIMAL
States that the values in the column are floating point numbers. |
static short |
TYPE_ID
States that the values in the column are object IDs. |
static short |
TYPE_NUMBER
States that the values in the column are numbers. |
static short |
TYPE_STRING
States that the values in the column are strings. |
static short |
TYPE_TIMESTAMP
States that the values in the column are timestamps. |
Constructor Summary | |
---|---|
QueryColumnInfo(QueryColumnInfo obj)
Copy constructor |
|
QueryColumnInfo(java.lang.String columnName,
short type,
boolean isNullable)
Constructor. |
Method Summary | |
---|---|
void |
addConstant(java.lang.String strConstantName,
int value)
Adds an enumeration constant to the column information. |
java.lang.String |
getColumnName()
Returns the name of the column. |
java.lang.Integer |
getConstant(java.lang.String strConstantName)
Returns the enumeration value of the specified constant. |
java.lang.String |
getConstantName(int constantValue)
Returns the name of the specified enumeration constant. |
java.lang.String |
getTableName()
Returns the table name. |
short |
getType()
Returns the type of the column. |
boolean |
isNullable()
States whether the column allows for null values. |
void |
setColmnName(java.lang.String columnName)
Sets the column name This information is overwritten if column names are overwritten, e.g. if alias names are used. |
void |
setTableName(java.lang.String tableName)
Sets the name of the table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final short TYPE_STRING
public static final short TYPE_NUMBER
public static final short TYPE_TIMESTAMP
public static final short TYPE_BINARY
public static final short TYPE_BOOLEAN
public static final short TYPE_ID
public static final short TYPE_DECIMAL
Constructor Detail |
---|
public QueryColumnInfo(java.lang.String columnName, short type, boolean isNullable)
columnName
- The name of the column in the database.
type
- The type of the values in the column.
isNullable
- True if a value in the column can be null.
False if a value in the column cannot be null.public QueryColumnInfo(QueryColumnInfo obj)
obj
- the object to copyMethod Detail |
---|
public void addConstant(java.lang.String strConstantName, int value)
strConstantName
- The name of the enumeration constant, for example, REASON_OWNER.
value
- The value of the enumeration constant.public java.lang.Integer getConstant(java.lang.String strConstantName)
strConstantName
- The name of the enumeration constant, for example, REASON_OWNER.
public java.lang.String getConstantName(int constantValue)
constantValue
- The integer value of the enumeration constant.
public final java.lang.String getColumnName()
public final short getType()
public final boolean isNullable()
public final void setTableName(java.lang.String tableName)
This information is set, when a column is added to a QueryTableInfo object. A reference to the QueryTableInfo object is consciously not stored here to avoid loops and to keep the serializable object in the QueryResultSet small.
tableName
- The name of the table.public final java.lang.String getTableName()
public final void setColmnName(java.lang.String columnName)
This information is overwritten if column names are overwritten, e.g. if alias names are used.
columnName
- The name of the column
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |