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.

For example, this 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

 

Copyright © 1997, 2004, Oracle. All rights reserved.