|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.query.QMIterator
The QMIterator class is called by the Query Manager to iterate through a composite object list.
| Constructor Summary | |
QMIterator()
Creates a new instance of the QMIterator class. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the given instance of the QMIterator class. |
void |
close()
Closes the connection to the database. |
(package private) AssemblerEngine |
getAssemblerEngine()
|
java.lang.String |
getRootObjectName()
Retrieves the name of the root object from an instance of QMIterator. |
boolean |
hasNext()
Returns a Boolean indicator of whether the iterator contains a next object to retrieve. |
(package private) void |
initCompile(SQLDescriptor[] sqlDesc,
AssembleDescriptor assDesc)
|
(package private) void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows)
|
(package private) void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows,
boolean closeDbConnection)
This method initializes the data structures that are used during run time and can be writeable. |
java.lang.Object |
next()
Retrieves the next object constructed by the assembler engine. |
(package private) void |
setAssemblerEngine(AssemblerEngine assEngine)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QMIterator()
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Object - A copy of the given QMIterator object.
java.lang.CloneNotSupportedException - Thrown to indicate that the object
could not be cloned.
public void close()
throws QMException
void - None.
QMException - Thrown if an error occurs while closing the connection.AssemblerEngine getAssemblerEngine()
public java.lang.String getRootObjectName()
String - The root object name.
public boolean hasNext()
throws QMException
Boolean - An indicator of whether there is another
object to retrieve. True indicates there is an object to retrieve;
false indicates there is not.
QMException - Thrown if an error occurs while checking for the
next object in the iterator.
include
void initCompile(SQLDescriptor[] sqlDesc,
AssembleDescriptor assDesc)
throws QMException
QMException
void initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows)
throws QMException
QMException
void initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows,
boolean closeDbConnection)
throws QMException
con - ConnectionresultSets - ResultSet[]statements - Statement[]maxRows - maximum number of rowscloseDbConnection - set to true if the database connection is to be
closed by the AssemblerEngine, false if some other calling class is to close
the database connection instead.
QMException - QMException
public java.lang.Object next()
throws QMException
Object - The next object in the iterator.
QMException - Thrown if an error occurs while trying to retrieve
the next object.void setAssemblerEngine(AssemblerEngine assEngine)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.