net.wgen.op.db
Interface CallExecutor

All Known Implementing Classes:
CallExecutorDB, CallExecutorDBUnit

public interface CallExecutor

Instantiated by OpExecutors and passed into the Op's _execute method providing that Op access to data sources.

Version:
$Id: CallExecutor.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Method Summary
 void executeDatabaseCall(DatabaseCall dbCall)
          Executes an operation described by the DatabaseCall and registers that operations output in the appropriate Parameters in the DatabaseCall.
 void executeOp(Op op)
          Executes an Op.
 java.util.Collection executeQueryWithResultSet(DatabaseCall dbCall)
          Executes the operation described by the DatabaseCall and returns the List representing the data returned by the PreparedStatement in the ResultSet.
 void executeUpdate(DatabaseCall dbCall)
          Executes the DatabaseCall as an update.
 

Method Detail

executeOp

public void executeOp(Op op)
               throws OpException
Executes an Op.

Parameters:
op -
Throws:
OpException

executeDatabaseCall

public void executeDatabaseCall(DatabaseCall dbCall)
                         throws DatabaseCallException
Executes an operation described by the DatabaseCall and registers that operations output in the appropriate Parameters in the DatabaseCall.

Parameters:
dbCall - the object describing the operation to be performed
Throws:
DatabaseCallException

executeQueryWithResultSet

public java.util.Collection executeQueryWithResultSet(DatabaseCall dbCall)
                                               throws DatabaseCallException
Executes the operation described by the DatabaseCall and returns the List representing the data returned by the PreparedStatement in the ResultSet.

Parameters:
dbCall - the object describing the operation to be run
Returns:
the list representing the returned data
Throws:
DatabaseCallException

executeUpdate

public void executeUpdate(DatabaseCall dbCall)
                   throws DatabaseCallException
Executes the DatabaseCall as an update.

Parameters:
dbCall - the call to execute
Throws:
DatabaseCallException