|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.query.TupleAssemblerEngine
Constructor Summary | |
TupleAssemblerEngine()
Creates a new instance of AssemblerEngine |
Method Summary | |
java.lang.Object |
clone()
Clones the engine. |
void |
close()
Closes the engine, which in turns closes any database connection it is holding. |
void |
finalizer()
finalizer |
boolean |
hasNext()
Returns true if has a Next object; otherwise returns false |
void |
initCompile(SQLDescriptor[] sqlDescs,
AssembleDescriptor assDesc)
initilization of TupleAssemblerEngine |
void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows)
This initialization is used during run time. |
void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows,
boolean closeDbConnection)
This initialization is used during runtime. |
java.lang.Object |
next()
returns next tuple object retrieved from the SQL query. |
boolean |
setDbConnectionCondition()
Gets the value of the closeDbConnection class variable |
void |
setDbConnectionCondition(boolean val)
Sets the value of the closeDbConnection class variable |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TupleAssemblerEngine()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface AssemblerEngine
java.lang.CloneNotSupportedException
- CloneNotSupportedExceptionpublic void close() throws QMException
close
in interface AssemblerEngine
QMException
- QMExceptionpublic void finalizer() throws QMException
QMException
- QMExceptionpublic boolean hasNext() throws QMException
hasNext
in interface AssemblerEngine
QMException
- QMExceptionpublic void initCompile(SQLDescriptor[] sqlDescs, AssembleDescriptor assDesc) throws QMException
initCompile
in interface AssemblerEngine
sqlDescs
- SQLDescriptor[] that contains SQL statements and their
meta data to be used for initialization.assDesc
- AssembleDescriptor
QMException
- QMExceptionpublic void initRun(java.sql.Connection con, java.sql.ResultSet[] resultSets, java.sql.Statement[] statements, int maxRows) throws QMException
initRun
in interface AssemblerEngine
con
- ConnectionresultSets
- ResultSet[]statements
- Statement[]
QMException
- QMExceptionpublic void initRun(java.sql.Connection con, java.sql.ResultSet[] resultSets, java.sql.Statement[] statements, int maxRows, boolean closeDbConnection) throws QMException
initRun
in interface AssemblerEngine
con
- ConnectionresultSets
- ResultSet[]statements
- Statement[]maxRows
- Maximum number of rows.closeDbConnection
- set to true if the database connection is to be
closed by this class, false if some other calling class is to close the
database connection instead.
QMException
- QMExceptionpublic java.lang.Object next() throws QMException
next
in interface AssemblerEngine
QMException
- QMExceptionpublic boolean setDbConnectionCondition()
public void setDbConnectionCondition(boolean val)
val
- Value to which closeDbConnection is to be set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.