Package quadbase.reportdesigner.util
Class QueryResultSet
java.lang.Object
quadbase.reportdesigner.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
ConstructorsConstructorDescriptionCreate a new QueryResultSet using the specified java.sql.ResultSet objectQueryResultSet(Statement stmt) Create a new QueryResultSet using the specified java.sql.Statement objectQueryResultSet(Statement stmt, String productName) Create a QueryResultSet object using the specified Statement and product name -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()For internal useintGet total number of columnsintgetColumnDisplaySize(int col) getColumnName(int col) Get name of specified columnintgetColumnType(int col) Get type of specified columnGet original datagetObject(int colNo) Get object of specified column numbergetTableName(int col) booleannext()For internal use
-
Constructor Details
-
QueryResultSet
Create a new QueryResultSet using the specified java.sql.ResultSet object- Throws:
SQLException
-
QueryResultSet
Create a new QueryResultSet using the specified java.sql.Statement object- Parameters:
stmt- must be an executed statement- Throws:
SQLException
-
QueryResultSet
Create a QueryResultSet object using the specified Statement and product name- Parameters:
stmt- must be an executed statementproductName- product name- Throws:
SQLException
-
-
Method Details
-
next
For internal use- Specified by:
nextin interfaceIResultSet- Throws:
SQLException
-
close
For internal use- Specified by:
closein interfaceIResultSet- Throws:
SQLException
-
getObject
Get object of specified column number- 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
Get original data- Specified by:
getMetaDatain interfaceIResultSet- Throws:
SQLException
-
getColumnCount
Get total number of columns- Specified by:
getColumnCountin interfaceIRSMetaData- Throws:
SQLException
-
getColumnName
Get name of specified column- Specified by:
getColumnNamein interfaceIRSMetaData- Returns:
- the column name
- Throws:
SQLException
-
getTableName
- Specified by:
getTableNamein interfaceIRSMetaData- Throws:
SQLException
-
getColumnType
Get type of specified column- Specified by:
getColumnTypein interfaceIRSMetaData- Returns:
- the column SQL data type (as represented in java.sql.Types).
- Throws:
SQLException- See Also:
-
getColumnDisplaySize
- Throws:
SQLException
-