public class QueryResultSet extends java.lang.Object implements IResultSet, IRSMetaData
| Constructor and Description |
|---|
QueryResultSet(java.sql.ResultSet rs)
Creates a QueryResultSet object using the specified ResultSet
|
QueryResultSet(java.sql.Statement stmt)
Creates a QueryResultSet object using the specified Statement
|
QueryResultSet(java.sql.Statement stmt,
java.lang.String productName)
Creates a QueryResultSet object using the specified Statement and product name
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the cursor
|
int |
getColumnCount()
Gets the number of columns in the result set.
|
int |
getColumnDisplaySize(int col) |
java.lang.String |
getColumnName(int col)
Gets the name of a column in the result set.
|
int |
getColumnType(int col)
Gets the data type of a column in the result set.
|
IRSMetaData |
getMetaData()
Gets the meta data object
|
java.lang.Object |
getObject(int colNo)
Returns the data value stored in the specified column of this row.
|
java.lang.String |
getTableName(int col) |
boolean |
next()
Advances cursor to next row
|
public QueryResultSet(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionpublic QueryResultSet(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - must be an executed statementjava.sql.SQLExceptionpublic QueryResultSet(java.sql.Statement stmt,
java.lang.String productName)
throws java.sql.SQLException
stmt - must be an executed statementproductName - product namejava.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
IResultSetnext in interface IResultSetjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
IResultSetclose in interface IResultSetjava.sql.SQLExceptionpublic java.lang.Object getObject(int colNo)
throws java.sql.SQLException
IRowpublic IRSMetaData getMetaData() throws java.sql.SQLException
IResultSetgetMetaData in interface IResultSetjava.sql.SQLExceptionpublic int getColumnCount()
throws java.sql.SQLException
IRSMetaDatagetColumnCount in interface IRSMetaDatajava.sql.SQLExceptionpublic java.lang.String getColumnName(int col)
throws java.sql.SQLException
IRSMetaDatagetColumnName in interface IRSMetaDatajava.sql.SQLExceptionpublic java.lang.String getTableName(int col)
throws java.sql.SQLException
getTableName in interface IRSMetaDatajava.sql.SQLExceptionpublic int getColumnType(int col)
throws java.sql.SQLException
IRSMetaDatagetColumnType in interface IRSMetaDatacol - the column index (beginning at 1)java.sql.SQLExceptionpublic int getColumnDisplaySize(int col)
throws java.sql.SQLException
java.sql.SQLException