|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jdbc.nonxa.NonXADataSourceBean
AtomikosNonXADataSourceBean
should be used instead.
public class NonXADataSourceBean
A Bean class for DataSource access to non-XA JDBC implementations. Instances are transaction-aware and can rollback the work done over multiple connections (provided that all work was done in one and the same thread).
Constructor Summary | |
---|---|
NonXADataSourceBean()
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. Close the instance after use. |
Connection |
getConnection()
Deprecated. |
Connection |
getConnection(HeuristicMessage msg)
Deprecated. Get a connection to the datasource for the given description of the work. |
Connection |
getConnection(String msg)
Deprecated. Get a connection to the datasource for the given description of the work. |
Connection |
getConnection(String user,
String pass)
Deprecated. |
Connection |
getConnection(String user,
String passwd,
HeuristicMessage msg)
Deprecated. Get a connection to the datasource for the given description of the work. |
Connection |
getConnection(String user,
String passwd,
String msg)
Deprecated. Get a connection to the datasource for the given description of the work. |
int |
getConnectionTimeout()
Deprecated. |
String |
getDriverClassName()
Deprecated. |
int |
getLoginTimeout()
Deprecated. |
PrintWriter |
getLogWriter()
Deprecated. |
String |
getPassword()
Deprecated. |
int |
getPoolSize()
Deprecated. |
Reference |
getReference()
Deprecated. |
boolean |
getTestOnBorrow()
Deprecated. |
String |
getUniqueResourceName()
Deprecated. |
String |
getUrl()
Deprecated. |
String |
getUser()
Deprecated. |
String |
getValidatingQuery()
Deprecated. Get the validating query |
void |
setConnectionTimeout(int secs)
Deprecated. Set the refresh timeout interval for pool connections (optional). |
void |
setDriverClassName(String name)
Deprecated. Set the name of the driver class that the DriverManager should use (required). |
void |
setLoginTimeout(int val)
Deprecated. |
void |
setLogWriter(PrintWriter pw)
Deprecated. |
void |
setPassword(String string)
Deprecated. Set the password to use. |
void |
setPoolSize(int size)
Deprecated. Set the minimum size of the pool (optional). |
void |
setTestOnBorrow(boolean value)
Deprecated. Set whether connections should be tested when gotten. |
void |
setUniqueResourceName(String name)
Deprecated. Set the JNDI name to bind on (required). |
void |
setUrl(String url)
Deprecated. Set the URL to use for getting connections (required). |
void |
setUser(String string)
Deprecated. Set the user name to get connections with. |
void |
setValidatingQuery(String query)
Deprecated. Set a validating query for easy verification of connectivity (optional). |
void |
validate()
Deprecated. Perform validation based on the validating query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonXADataSourceBean()
Method Detail |
---|
public Connection getConnection(HeuristicMessage msg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
msg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.HeuristicDataSource.getConnection(com.atomikos.icatch.HeuristicMessage)
public Connection getConnection(String user, String passwd, HeuristicMessage msg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
user
- The user name to use.passwd
- The password.msg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.HeuristicDataSource.getConnection(java.lang.String,
java.lang.String, com.atomikos.icatch.HeuristicMessage)
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
Referenceable.getReference()
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection()
public Connection getConnection(String user, String pass) throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection(java.lang.String,
java.lang.String)
public Connection getConnection(String msg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
msg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.HeuristicDataSource.getConnection(java.lang.String,
java.lang.String, com.atomikos.icatch.HeuristicMessage)
public Connection getConnection(String user, String passwd, String msg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
user
- The user name to use.passwd
- The password.msg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.HeuristicDataSource.getConnection(java.lang.String,
java.lang.String, com.atomikos.icatch.HeuristicMessage)
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface DataSource
SQLException
DataSource.getLogWriter()
public void setLogWriter(PrintWriter pw) throws SQLException
setLogWriter
in interface DataSource
SQLException
DataSource.setLogWriter(java.io.PrintWriter)
public void setLoginTimeout(int val) throws SQLException
setLoginTimeout
in interface DataSource
SQLException
DataSource.setLoginTimeout(int)
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface DataSource
SQLException
DataSource.getLoginTimeout()
public int getConnectionTimeout()
public String getDriverClassName()
public String getUniqueResourceName()
public String getPassword()
public int getPoolSize()
public String getUrl()
public String getUser()
public void setTestOnBorrow(boolean value)
value
- Whether to test connections when taken out of the pool.public boolean getTestOnBorrow()
public void setConnectionTimeout(int secs)
secs
- The value in seconds.public void setDriverClassName(String name)
name
- The name.public void setUniqueResourceName(String name)
name
- The JNDI name.public void setPassword(String string)
string
- public void setPoolSize(int size)
size
- public void setUrl(String url)
url
- public void setUser(String string)
string
- public void setValidatingQuery(String query)
query
- public String getValidatingQuery()
public void close()
public void validate() throws SQLException
SQLException
- If validation fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |