Examples of EngineConnection


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

    // do local work with conn
    // need to create new connection here.
  */
  public EngineConnection getRealConnection() throws SQLException
  {
        EngineConnection rc = super.getRealConnection();
    if (rc != null)
      return rc;

    openRealConnection();

View Full Code Here

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

    // do local work with conn
    // need to create new connection here.
  */
  public EngineConnection getRealConnection() throws SQLException
  {
        EngineConnection rc = super.getRealConnection();
    if (rc != null)
      return rc;

    openRealConnection();

View Full Code Here

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

                if(password != null)
        p.put(Attribute.PASSWORD_ATTR, password);
               
        // Contract between network server and embedded engine
        // is that any connection returned implements EngineConnection.
        EngineConnection conn = (EngineConnection)
            NetworkServerControlImpl.getDriver().connect(Attribute.PROTOCOL
               + shortDbName + attrString, p);
    if(conn != null){
      conn.setAutoCommit(false);
    }
    setConnection(conn);
  }
View Full Code Here

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

    xaDataSource.setDatabaseName(shortDbName);
    appendAttrString(p);
    if (attrString != null)
      xaDataSource.setConnectionAttributes(attrString);
   
    EngineConnection conn = getConnection();
    // If we have no existing connection. this is a brand new XAConnection.
    if (conn == null)
    {
      xaConnection = xaDataSource.getXAConnection(userId,password);
      xaResource = xaConnection.getXAResource();
    }
    else // this is just a connection reset. Close the logical connection.
    {
      conn.close();
    }
   
    // Get a new logical connection.
        // Contract between network server and embedded engine
        // is that any connection returned implements EngineConnection.
     conn = (EngineConnection) xaConnection.getConnection();
    // Client will always drive the commits so connection should
    // always be autocommit false on the server. DERBY-898/DERBY-899
    conn.setAutoCommit(false);
    setConnection(conn);   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.