Package quadbase.util
Class QueryResultSet
java.lang.Object
quadbase.util.QueryResultSet
- All Implemented Interfaces:
IResultSet,IRow,IRSMetaData
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
ConstructorsConstructorDescriptionCreates a QueryResultSet object using the specified ResultSetQueryResultSet(Statement stmt) Creates a QueryResultSet object using the specified StatementQueryResultSet(Statement stmt, String productName) Creates a QueryResultSet object using the specified Statement and product nameQueryResultSet(Statement stmt, ResultSet resultSet, String productName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the cursorintGets the number of columns in the result set.intgetColumnDisplaySize(int col) getColumnName(int col) Gets the name of a column in the result set.intgetColumnType(int col) Gets the data type of a column in the result set.Gets the meta data objectgetObject(int colNo) Returns the data value stored in the specified column of this row.getTableName(int col) booleannext()Advances cursor to next row
-
Constructor Details
-
QueryResultSet
Creates a QueryResultSet object using the specified ResultSet- Throws:
SQLException
-
QueryResultSet
Creates a QueryResultSet object using the specified Statement- Parameters:
stmt- must be an executed statement- Throws:
SQLException
-
QueryResultSet
Creates a QueryResultSet object using the specified Statement and product name- Parameters:
stmt- must be an executed statementproductName- product name- Throws:
SQLException
-
QueryResultSet
-
-
Method Details
-
next
Description copied from interface:IResultSetAdvances cursor to next row- Specified by:
nextin interfaceIResultSet- Throws:
SQLException
-
close
Description copied from interface:IResultSetCloses the cursor- Specified by:
closein interfaceIResultSet- Throws:
SQLException
-
getObject
Description copied from interface:IRowReturns the data value stored in the specified column of this row.- Specified by:
getObjectin interfaceIRow- Parameters:
colNo- The column number for the field, beginning with 1.- Returns:
- The data value stored in that column field.
- Throws:
SQLException
-
getMetaData
Description copied from interface:IResultSetGets the meta data object- Specified by:
getMetaDatain interfaceIResultSet- Throws:
SQLException
-
getColumnCount
Description copied from interface:IRSMetaDataGets the number of columns in the result set.- Specified by:
getColumnCountin interfaceIRSMetaData- Throws:
SQLException
-
getColumnName
Description copied from interface:IRSMetaDataGets the name of a column in the result set.- Specified by:
getColumnNamein interfaceIRSMetaData- Returns:
- col the column name
- Throws:
SQLException
-
getTableName
- Specified by:
getTableNamein interfaceIRSMetaData- Throws:
SQLException
-
getColumnType
Description copied from interface:IRSMetaDataGets the data type of a column in the result set.- Specified by:
getColumnTypein interfaceIRSMetaData- Parameters:
col- the column index (beginning at 1)- Returns:
- the column SQL data type (as represented in java.sql.Types).
- Throws:
SQLException
-
getColumnDisplaySize
- Throws:
SQLException
-