Class XADatabase


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

      • XADatabase

        XADatabase​(java.lang.String dbName)
    • Method Detail

      • makeConnection

        void makeConnection​(java.util.Properties p)
                     throws java.sql.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:
        java.sql.SQLException
      • setXAResource

        protected void setXAResource​(javax.transaction.xa.XAResource resource)
        SetXAResource
        Parameters:
        resource - XAResource for this connection
      • getXAResource

        protected javax.transaction.xa.XAResource getXAResource()
        get XA Resource for this connection
      • getResourceAdapter

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