|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.query.QueryResults
The QueryResults class is used for tuple creation and for late assembling of tuples. This is returned from QueryManager.execute() when QueryObject.setAssembleDescriptor is set to null. QueryResults wraps the java.sql.ResultSet class.
Field Summary |
Fields inherited from interface com.sun.mdm.index.query.QueryConstants |
MULTIPLE_QUERY, SINGLE_QUERY |
Constructor Summary | |
(package private) |
QueryResults(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
SQLDescriptor[] sqlDesc,
int queryOption)
Creates a new instance of the QueryResults class. |
(package private) |
QueryResults(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
SQLDescriptor[] sqlDesc,
int queryOption,
boolean closeDbConnection)
Creates a new instance of the QueryResults class. |
Method Summary | |
QMIterator |
assemble()
Initiates the tuple assembly process. |
void |
close()
Closes the instance of the QueryResults class. |
java.sql.ResultSet[] |
getResultSets()
get the ResultSets |
void |
setAssembleDescriptor(AssembleDescriptor assDesc)
Sets the assemble descriptor (AssembleDescriptor class) for the given query results object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
QueryResults(java.sql.Connection con, java.sql.ResultSet[] resultSets, java.sql.Statement[] statements, SQLDescriptor[] sqlDesc, int queryOption)
con
- A connection to the database.resultSets
- An array of query results.statements
- An array of SQL statements.sqlDesc
- An array of SQL descriptors.queryOption
- An indicator of the query type. 1 indicates SINGLE_QUERY;
2 indicates MULTIPLE_QUERY. The default is SINGLE_QUERY.
QueryResults(java.sql.Connection con, java.sql.ResultSet[] resultSets, java.sql.Statement[] statements, SQLDescriptor[] sqlDesc, int queryOption, boolean closeDbConnection)
con
- A connection to the database.resultSets
- An array of query results.statements
- An array of SQL statements.sqlDesc
- An array of SQL descriptors.queryOption
- An indicator of the query type. 1 indicates SINGLE_QUERY;
2 indicates MULTIPLE_QUERY. The default is SINGLE_QUERY.closeDbConnection
- Set to true if the database connection is to
be closed by the Assmbler Engine, false otherwise.
Method Detail |
public QMIterator assemble() throws QMException
QMIterator
- An iterator of assembled tuples for the query results
object.
QMException
- Thrown if an error occurs while assembling the tuple.public void close() throws QMException
void
- None.
QMException
- Thrown if an error occurs while closing the instance.public java.sql.ResultSet[] getResultSets()
public void setAssembleDescriptor(AssembleDescriptor assDesc)
assDesc
- The assemble descriptor to use for this query object.
void
- None.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.