public interface IStoredProcedure
Modifier and Type | Method and Description |
---|---|
ResultSet |
executeQuery(ISqlWorker worker,
Object[] args)
Executes stored procedure and returns result set
|
Object[] |
executeQuery(ISqlWorker worker,
Object[] args,
int[] outTypes)
Executes stored procedure and return object array
|
int |
executeUpdate(ISqlWorker worker,
Object[] args)
Executes update
|
String |
getName()
Returns the name of the stored procedure.
|
String |
getPackageName()
Returns optional package name for stored procedure.
|
void |
setDatabaseRuntime(IDatabaseRuntime runtime) |
String getName()
String getPackageName()
ResultSet executeQuery(ISqlWorker worker, Object[] args) throws SQLException, ServerBusyException, DeadlockException
worker
- instance of ISqlWorker class that stored procedure should use to execute queries and manage
transactional stateargs
- input arguments to the stored procedureSQLException
ServerBusyException
DeadlockException
Object[] executeQuery(ISqlWorker worker, Object[] args, int[] outTypes) throws SQLException, ServerBusyException, DeadlockException
worker
- args
- outTypes
- SQLException
ServerBusyException
DeadlockException
int executeUpdate(ISqlWorker worker, Object[] args) throws SQLException, ServerBusyException, DeadlockException
worker
- args
- SQLException
ServerBusyException
DeadlockException
void setDatabaseRuntime(IDatabaseRuntime runtime)