/** * Gets a connection to the PostgreSQL database. The database is identified by the DataSource * properties serverName, databaseName, and portNumber. The user to connect as is identified by * the DataSource properties user and password. * * @return A valid database connection. * @throws SQLException Occurs when the database connection cannot be established. */ public XAConnection getXAConnection() throws SQLException { return getXAConnection(getUser(), getPassword()); }
@Override public XAConnection getXAConnection(String user, String password) throws SQLException { return m_xaDataSource.getXAConnection(user, password); } }
@Override public XAConnection getXAConnection(String user, String password) throws SQLException { return m_xaDataSource.getXAConnection(user, password); } }
@Override public XAConnection getXAConnection() throws SQLException { return m_xaDataSource.getXAConnection(); }
@Override public XAConnection getXAConnection() throws SQLException { return m_xaDataSource.getXAConnection(); }
/** * Gets a connection to the PostgreSQL database. The database is identified by the * DataSource properties serverName, databaseName, and portNumber. The user to * connect as is identified by the DataSource properties user and password. * * @return A valid database connection. * @throws SQLException * Occurs when the database connection cannot be established. */ public XAConnection getXAConnection() throws SQLException { return getXAConnection(getUser(), getPassword()); }