Interface PoolXADataSource

All Superinterfaces:
CommonDataSource, DataSource, Diagnosable, PoolDataSource, Wrapper, XADataSource
All Known Implementing Classes:
PoolXADataSourceImpl

public interface PoolXADataSource extends PoolDataSource, XADataSource
A Universal Connection Pool-enabled XA data source. See PoolDataSource for standard data source and connection pool properties that are supported.
See Also:
  • Method Details

    • getXAConnection

      XAConnection getXAConnection() throws SQLException
      Obtains an XA connection from the embedded Universal Connection Pool instance. Each XAConnection object represents a physical database connection that can be used in a distributed transaction.
      Specified by:
      getXAConnection in interface XADataSource
      Returns:
      An XAConnection object that can be used in a distributed transaction.
      Throws:
      SQLException - if a database access error occurs.
    • getXAConnection

      XAConnection getXAConnection(String user, String password) throws SQLException
      Obtains an XA connection from the embedded Universal Connection Pool instance, using the given user name and password. Each XAConnection object represents a physical database connection that can be used in a distributed transaction.
      Specified by:
      getXAConnection in interface XADataSource
      Parameters:
      user - The database user on whose behalf the connection is being made.
      password - The user's password.
      Returns:
      An XAConnection object that can be used in a distributed transaction.
      Throws:
      SQLException - if a database access error occurs.
    • getXAConnection

      XAConnection getXAConnection(Properties labels) throws SQLException
      Obtains an XA connection from the embedded Universal Connection Pool instance, using the given connection labels. Each XAConnection object represents a physical database connection that can be used in a distributed transaction.
      Parameters:
      labels - The requested connection labels.
      Returns:
      An XAConnection object, which represents a physical connection to a data source, that can be used in a distributed transaction.
      Throws:
      SQLException - if a database access error occurs.
    • getXAConnection

      XAConnection getXAConnection(String username, String password, Properties labels) throws SQLException
      Obtains an XA connection from the embedded Universal Connection Pool instance, using the given user name, password, and connection labels. Each XAConnection object represents a physical database connection that can be used in a distributed transaction.
      Parameters:
      username - The database user on whose behalf the connection is being made.
      password - The user's password.
      labels - The requested connection labels.
      Returns:
      An XAConnection object that can be used in a distributed transaction.
      Throws:
      SQLException - if a database access error occurs.
    • createXAConnectionBuilder

      UCPXAConnectionBuilder createXAConnectionBuilder()
      Creates a new XAConnectionBuilder instance.
      Specified by:
      createXAConnectionBuilder in interface XADataSource
      Returns:
      The XAConnectionBuilder instance that was created