IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services.jdbcservicesinfra
Class DatabaseResultSetMetaData

java.lang.Object
  extended bycom.ibm.btt.services.jdbcservicesinfra.DatabaseResultSetMetaData

public class DatabaseResultSetMetaData
extends java.lang.Object

The DatabaseResultSetMetaData class maintains the information concerning the columns for a specific database table.


Field Summary
 int columnCount
          The number of columns in the database table.
 Vector columnsDisplaySizes
          The sizes of the columns in the database table.
 Vector columnsNames
          The names of the columns in the database table.
 Vector columnsTypes
          The types of the columns in the database table.
 Vector columnsTypesNames
          The types names of the columns in the database table.
 
Constructor Summary
DatabaseResultSetMetaData(java.sql.ResultSetMetaData aSchemaDefinition)
          This constructor creates a DatabaseResultSetMetaData object.
 
Method Summary
 int getColumnCount()
          Returns the columnCount attribute value.
 int getColumnDisplaySize(int aColumnIndex)
          Returns the column display size of a column referrenced by aColumnIndex in the database table.
 java.lang.String getColumnName(int columnIndex)
          Returns the column name for a specific index.
 int getColumnType(int aColumnIndex)
          Returns the column type for the column in the database table, which is referenced by aColumnIndex index.
 java.lang.String getColumnTypeName(int aColumnIndex)
          Returns the column type name for a column in the database table, which is referenced by aColumnIndex index.
 void setColumnCount(int aNumberOfColumns)
          Sets the value of the columnCount attribute to aNumberOfColumns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnCount

public int columnCount
The number of columns in the database table.


columnsNames

public Vector columnsNames
The names of the columns in the database table.


columnsTypes

public Vector columnsTypes
The types of the columns in the database table. Contains a vector of int values.


columnsTypesNames

public Vector columnsTypesNames
The types names of the columns in the database table.


columnsDisplaySizes

public Vector columnsDisplaySizes
The sizes of the columns in the database table.

Constructor Detail

DatabaseResultSetMetaData

public DatabaseResultSetMetaData(java.sql.ResultSetMetaData aSchemaDefinition)
                          throws java.sql.SQLException
This constructor creates a DatabaseResultSetMetaData object. It has as an argument the ResultSetMetaData with a description of the database table characteristics. This argument is used to set the instance attributes.

Parameters:
aSchemaDefinition - ResultSetMetaData
Throws:
DSESQLException - if an SQLException is caught.
java.sql.SQLException
Method Detail

getColumnCount

public int getColumnCount()
Returns the columnCount attribute value.

Returns:
int

getColumnDisplaySize

public int getColumnDisplaySize(int aColumnIndex)
Returns the column display size of a column referrenced by aColumnIndex in the database table.

Parameters:
aColumnIndex - int
Returns:
int

getColumnName

public java.lang.String getColumnName(int columnIndex)
Returns the column name for a specific index. In the columnNames vector, the column names are ordered in the same order that the columns are created in the database table.

Parameters:
columnIndex - int
Returns:
java.lang.String

getColumnType

public int getColumnType(int aColumnIndex)
Returns the column type for the column in the database table, which is referenced by aColumnIndex index.

Parameters:
aColumnIndex - int
Returns:
int

getColumnTypeName

public java.lang.String getColumnTypeName(int aColumnIndex)
Returns the column type name for a column in the database table, which is referenced by aColumnIndex index.

Parameters:
aColumnIndex - int
Returns:
java.lang.String

setColumnCount

public void setColumnCount(int aNumberOfColumns)
Sets the value of the columnCount attribute to aNumberOfColumns.

Parameters:
aNumberOfColumns - int

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005