Package org.apache.derby.iapi.jdbc

Examples of org.apache.derby.iapi.jdbc.ConnectionContext


            // CALL statement for this connection are closed.
            // If any close() results in an exception we need to keep going,
            // save any exceptions and then throw them once we are complete.
            StandardException errorOnClose = null;
           
            ConnectionContext jdbcContext = null;
           
            for (int i = 0; i < dynamicResults.length; i++)
            {
                ResultSet[] param = dynamicResults[i];
                ResultSet drs = param[0];
               
                // Can be null if the procedure never set this parameter
                // or if the dynamic results were processed by JDBC (EmbedStatement).
                if (drs == null)
                    continue;
               
                if (jdbcContext == null)
                    jdbcContext = (ConnectionContext)
                   lcc.getContextManager().getContext(ConnectionContext.CONTEXT_ID);
              
                try {
                   
                    // Is this a valid, open dynamic result set for this connection?
                    if (!jdbcContext.processInaccessibleDynamicResult(drs))
                    {
                        // If not just ignore it, not Derby's problem.
                        continue;
                    }
                   
View Full Code Here


    /* If jdbc:default:connection, see if user already has a
     * connection. All connection attributes are ignored.
     */
    if (current) {

      ConnectionContext connContext = getConnectionContext();

      if (connContext != null) {
           
        return connContext.getNestedConnection(false);
       
      }
      // there is no Derby connection, so
      // return null, as we are not the driver to handle this
      return null;
View Full Code Here

    ** The current connection is the one in the current
    ** connection context, so get the context.
    */
    ContextManager  cm = getCurrentContextManager();

    ConnectionContext localCC = null;

    /*
      cm is null the very first time, and whenever
      we aren't actually nested.
     */
 
View Full Code Here

    /* If jdbc:default:connection, see if user already has a
     * connection. All connection attributes are ignored.
     */
    if (current) {

      ConnectionContext connContext = getConnectionContext();

      if (connContext != null) {
           
        return connContext.getNestedConnection(false);
       
      }
      // there is no Derby connection, so
      // return null, as we are not the driver to handle this
      return null;
View Full Code Here

    ** The current connection is the one in the current
    ** connection context, so get the context.
    */
    ContextManager  cm = getCurrentContextManager();

    ConnectionContext localCC = null;

    /*
      cm is null the very first time, and whenever
      we aren't actually nested.
     */
 
View Full Code Here

   *
   * @exception SQLException    Thrown on failure to get connection
   */
  public Connection getCurrentConnection() throws SQLException {

    ConnectionContext cc =
      (ConnectionContext) getContextManager().getContext(ConnectionContext.CONTEXT_ID);

    return cc.getNestedConnection(true);
 
View Full Code Here

   *
   * @exception SQLException    Thrown on failure to get connection
   */
  public Connection getCurrentConnection() throws SQLException {

    ConnectionContext cc =
      (ConnectionContext) cm.getContext(ConnectionContext.CONTEXT_ID);

    return cc.getNestedConnection(true);
 
View Full Code Here

    /* If jdbc:default:connection, see if user already has a
     * connection. All connection attributes are ignored.
     */
    if (current) {

      ConnectionContext connContext = getConnectionContext();

      if (connContext != null) {
           
        return connContext.getNestedConnection(false);
       
      }
      // there is no cloudscape connection, so
      // return null, as we are not the driver to handle this
      return null;
View Full Code Here

    ** The current connection is the one in the current
    ** connection context, so get the context.
    */
    ContextManager  cm = getCurrentContextManager();

    ConnectionContext localCC = null;

    /*
      cm is null the very first time, and whenever
      we aren't actually nested.
     */
 
View Full Code Here

   *
   * @exception SQLException    Thrown on failure to get connection
   */
  public Connection getCurrentConnection() throws SQLException {

    ConnectionContext cc =
      (ConnectionContext) getContextManager().getContext(ConnectionContext.CONTEXT_ID);

    return cc.getNestedConnection(true);
 
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.jdbc.ConnectionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.