com.ibm.websphere.batch.ilc
Interface ILContainer
- public interface ILContainer
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getDB2Connection()
Gets the DB2 connection currently assigned to this ILContainer.
|
|
invokeProcedure(ILProcedure proc)
Invokes the specified procedure inside this ILContainer.
|
|
setDB2Connection(java.sql.Connection db2Connection)
Sets the DB2 connection to be shared with procedures
invoked inside of this ILContainer.
|
Method Detail
getDB2Connection
- java.sql.Connection getDB2Connection( )
Gets the DB2 connection currently assigned to this ILContainer.
Returns:
the DB2 connection.
setDB2Connection
- void setDB2Connection(java.sql.Connection db2Connection)
Sets the DB2 connection to be shared with procedures
invoked inside of this ILContainer.
Parameters:
db2Connection
- specifies the DB2 connection to share. invokeProcedure
- int invokeProcedure(ILProcedure proc)
- throws ILContainerException
- ILProcedureException
Invokes the specified procedure inside this ILContainer.
The target procedure executes in the same transactional
context as the caller. The db2 connection attached to this
ILContainer will be used for any SQL invoked by the target
procedure. The security environment of the target procedure
is the same as the callers.
Parameters:
proc
- specifies the procedure to invoke. Returns:
the return code from the target procedure.
Throws:
ILContainerException
- thrown if the target procedure cannot
be loaded or for an internal failure of this ILContainer. ILProcedureException
- thrown if target procedure encounters an error