|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.eindex.ejb.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.
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. |
Method Summary | |
QMIterator |
assemble()
Initiates the tuple assembly process. |
void |
close()
Closes the instance of the QueryResults class. |
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.
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 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 |
Copyright 2007 by Sun Microsystems, Inc. All Rights Reserved.