SQLJ context-clause
A context clause specifies a connection context, an execution context, or both. You use a connection context to connect to a data source. You use an execution context to monitor and modify SQL statement execution.
Syntax
Description
- connection-context
- Specifies a valid Java™ identifier that is declared earlier in the SQLJ program. That identifier must be declared as an instance of the connection context class that SQLJ generates for a connection declaration clause.
- execution-context
- Specifies a valid Java identifier that is declared earlier in the SQLJ program. That identifier must be declared as an instance of class sqlj.runtime.ExecutionContext.
Usage notes
- If you do not specify a connection context in an executable clause, SQLJ uses the default connection context.
- If you do not specify an execution context, SQLJ obtains the execution context from the connection context of the statement.
