|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.util.QueryResultSet
public class QueryResultSet
A wrapper around java.sql.ResultSet/ResultSetMetaData to implement IResultSet and IRSMetaData interfaces. This class was implemented later to create a uniform IResultSet interface for data obtained from all sources.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResultSet(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public QueryResultSet(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - must be an executed statement
java.sql.SQLException
public QueryResultSet(java.sql.Statement stmt,
java.lang.String productName)
throws java.sql.SQLException
stmt - must be an executed statementproductName - product name
java.sql.SQLException| Method Detail |
|---|
public boolean next()
throws java.sql.SQLException
IResultSet
next in interface IResultSetjava.sql.SQLException
public void close()
throws java.sql.SQLException
IResultSet
close in interface IResultSetjava.sql.SQLException
public java.lang.Object getObject(int colNo)
throws java.sql.SQLException
IRow
getObject in interface IRowcolNo - The column number for the field, beginning with 1.
java.sql.SQLException
public IRSMetaData getMetaData()
throws java.sql.SQLException
IResultSet
getMetaData in interface IResultSetjava.sql.SQLException
public int getColumnCount()
throws java.sql.SQLException
IRSMetaData
getColumnCount in interface IRSMetaDatajava.sql.SQLException
public java.lang.String getColumnName(int col)
throws java.sql.SQLException
IRSMetaData
getColumnName in interface IRSMetaDatajava.sql.SQLException
public java.lang.String getTableName(int col)
throws java.sql.SQLException
getTableName in interface IRSMetaDatajava.sql.SQLException
public int getColumnType(int col)
throws java.sql.SQLException
IRSMetaData
getColumnType in interface IRSMetaDatacol - the column index (beginning at 1)
java.sql.SQLException
public int getColumnDisplaySize(int col)
throws java.sql.SQLException
java.sql.SQLException
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||