|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.query.AssemblerEngineImpl
This AssemblerEngine is responsible to initialize the data structures that are used during Assembling. It holds reference to Array of QueryResultSet and call them in a loop until the next root composite object has been fetched and assembled. The actual assembling for each JDBC resultset is delegated to QueryResultSet.
| Constructor Summary | |
AssemblerEngineImpl()
Creates a new instance of AssemblerEngine |
|
| Method Summary | |
java.lang.Object |
clone()
clones the AssemblerEngine |
void |
close()
close the underlying connection. |
void |
finalizer()
finalizer closes the database connection |
boolean |
hasNext()
returns true if there is another composite value object else returns false. |
void |
initCompile(SQLDescriptor[] sqlDesc,
AssembleDescriptor assDesc)
part of compilation is to create CreateObjectList and create AssembleObjectState These will be used during run time execution of engine. |
void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows)
This initialises data structures that are used during assembling. |
void |
initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows,
boolean closeDbConnection)
This initialises data structures that are used during assembling. |
java.lang.Object |
next()
get the next Root Value object. |
boolean |
setDbConnectionCondition()
Gets the value of mCloseDbConnection. |
void |
setDbConnectionCondition(boolean val)
Sets the value of mCloseDbConnection. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AssemblerEngineImpl()
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface AssemblerEnginejava.lang.CloneNotSupportedException - CloneNotSupportedException
public void close()
throws QMException
close in interface AssemblerEngineQMException - QMException
public void finalizer()
throws QMException
QMException - QMException
public boolean hasNext()
throws QMException
hasNext in interface AssemblerEngineQMException - QMException
public void initCompile(SQLDescriptor[] sqlDesc,
AssembleDescriptor assDesc)
throws QMException
initCompile in interface AssemblerEnginesqlDesc - SQLDescriptor[]assDesc - AssembleDescriptor
QMException - QMException
public void initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows)
throws QMException
initRun in interface AssemblerEnginecon - JDBC DataSource ConnectionresultSets - ResultSet[] that
contain multiple ResultSets executed by QueryManagermaxRows - Maximum Rowsstatements - Statement[]
QMException - QMException
public void initRun(java.sql.Connection con,
java.sql.ResultSet[] resultSets,
java.sql.Statement[] statements,
int maxRows,
boolean closeDbConnection)
throws QMException
initRun in interface AssemblerEnginecon - JDBC DataSource ConnectionresultSets - ResultSet[] that
contain multiple ResultSets executed by QueryManagermaxRows - maximum number of rowscloseDbConnection - set to true if the database connection is to be
closed by the AssemblerEngineImpl, false if some other calling class is to
close the database connection insteadstatements - Statement[]
QMException - QMException
public java.lang.Object next()
throws QMException
next in interface AssemblerEngineQMException - QMExceptionpublic boolean setDbConnectionCondition()
public void setDbConnectionCondition(boolean val)
val - value to which mCloseDbConnection is to be set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.