public final Object getSQLJConnectionContext ( Class < ? > DefaultContext , WSConnectionManager cm ) throws SQLException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "getSQLJConnectionContext" ) ; if ( sqljContext == null ) { // get the sqljContext if necessary. let the helper handle it // the helper does the sqlex mapping try { sqljContext = helper . getSQLJContext ( this , DefaultContext , cm ) ; } catch ( SQLException se ) { // the helper already did the sqlj error mapping and ffdc.. if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( this , tc , "getSQLJConnectionContext" , se ) ; throw se ; } } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( this , tc , "getSQLJConnectionContext" , sqljContext ) ; return sqljContext ; }
This method returns the SQLJ ConnectionContext . This method is only called by the WSJccConnection class . The ConnectionContext caches all the RTStatements