Class XADatabase

java.lang.Object
org.apache.derby.impl.drda.Database
org.apache.derby.impl.drda.XADatabase

class XADatabase extends Database
This class contains database state specific to XA, specifically the XAResource that will be used for XA commands.
  • Field Details

  • Constructor Details

    • XADatabase

      XADatabase(String dbName)
  • Method Details

    • makeConnection

      void makeConnection(Properties p) throws SQLException
      Make a new connection using the database name and set the connection in the database
      Overrides:
      makeConnection in class Database
      Parameters:
      p - Properties for connection attributes to pass to connect
      Throws:
      SQLException
    • setXAResource

      protected void setXAResource(XAResource resource)
      SetXAResource
      Parameters:
      resource - XAResource for this connection
    • getXAResource

      protected XAResource getXAResource()
      get XA Resource for this connection
    • getResourceAdapter

      ResourceAdapter getResourceAdapter()
      Returns:
      The ResourceAdapter instance for the underlying database.