Declaring a SQLJ Connection Context Class

A connection context is an object of a connection context class, which you define using a SQLJ connection declaration.

The following statement declares the context class MyConnectionContext:

#sql context MyConnectionContext; 

Context classes extend sqlj.runtime.ref.ConnectionContextImpl and implement sqlj.runtime.ConnectionContext.


Using Named SQLJ Connection Contexts