com.atomikos.jdbc
Interface HeuristicDataSource

All Superinterfaces:
CommonDataSource, DataSource, Wrapper
All Known Implementing Classes:
AbstractDataSourceBean, AtomikosDataSourceBean, AtomikosNonXADataSourceBean

public interface HeuristicDataSource
extends DataSource

A data source that supports the addition of heuristic messages to SQL data access.


Method Summary
 Connection getConnection(HeuristicMessage msg)
          Get a connection to the datasource for the given description of the work.
 Connection getConnection(String msg)
          Get a connection to the datasource for the given description of the work.
 Connection getConnection(String user, String passwd, HeuristicMessage msg)
          Get a connection to the datasource for the given description of the work.
 Connection getConnection(String user, String passwd, String msg)
          Get a connection to the datasource for the given description of the work.
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

getConnection

Connection getConnection(String msg)
                         throws SQLException
Get a connection to the datasource for the given description of the work.

Parameters:
msg - The heuristic message that best describes the work about to be done.
Returns:
Connection The connection.
Throws:
SQLException - On error.

getConnection

Connection getConnection(String user,
                         String passwd,
                         String msg)
                         throws SQLException
Get a connection to the datasource for the given description of the work.

Parameters:
user - The user name to use.
passwd - The password.
msg - The heuristic message that best describes the work about to be done.
Returns:
Connection The connection.
Throws:
SQLException - On error.

getConnection

Connection getConnection(HeuristicMessage msg)
                         throws SQLException
Get a connection to the datasource for the given description of the work.

Parameters:
msg - The heuristic message that best describes the work about to be done.
Returns:
Connection The connection.
Throws:
SQLException - On error.

getConnection

Connection getConnection(String user,
                         String passwd,
                         HeuristicMessage msg)
                         throws SQLException
Get a connection to the datasource for the given description of the work.

Parameters:
user - The user name to use.
passwd - The password.
msg - The heuristic message that best describes the work about to be done.
Returns:
Connection The connection.
Throws:
SQLException - On error.


Copyright © 2014. All Rights Reserved.