|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.execute.PlSqlWrapper.PlSqlRunnable
public abstract static class PlSqlWrapper.PlSqlRunnable
Runnable passed to the PlSqlWrapper to process the ResultSet and/or CallableStatement during execution. The processing is done via a separate class so that any work done on the database is managed appropriately (i.e. not on the event thread), and it also allows the wrapper framework to correctly close the Statement and ResultSet when done.
PlSqlWrapper.executePlSql(PlSqlRunnable)
Constructor Summary | |
---|---|
PlSqlWrapper.PlSqlRunnable() |
Method Summary | |
---|---|
void |
prepareCall(java.sql.CallableStatement cs) Called once the statement has been created, but before execution so that any output parameters can be registered. |
void |
processCall(java.sql.CallableStatement cs) |
void |
processResultSet(java.sql.ResultSet rs) Iterate through the result set as appropriate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlSqlWrapper.PlSqlRunnable()
Method Detail |
---|
public void prepareCall(java.sql.CallableStatement cs) throws java.sql.SQLException, DBException
cs
-java.sql.SQLException
DBException
public void processCall(java.sql.CallableStatement cs) throws java.sql.SQLException, DBException
java.sql.SQLException
DBException
public void processResultSet(java.sql.ResultSet rs) throws DBException
QueryWrapper.QueryRunnable
throwDBException
method(s) to process any exceptions encountered during processing.processResultSet
in interface QueryWrapper.QueryRunnable
rs
- the results of the query being m_runDBException
- for any db (or processing) error
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |