|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jdbc.DataSourceBean
AtomikosDataSourceBean
should be used instead.
public class DataSourceBean
Constructor Summary | |
---|---|
DataSourceBean()
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. |
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 pw)
Deprecated. |
Connection |
getConnection(String user,
String pw,
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. |
String |
getConnectionPoolSize()
Deprecated. |
String |
getConnectionTimeout()
Deprecated. |
String |
getDataSourceName()
Deprecated. |
int |
getLoginTimeout()
Deprecated. |
PrintWriter |
getLogWriter()
Deprecated. |
Reference |
getReference()
Deprecated. |
String |
getTestOnBorrow()
Deprecated. |
TransactionalResource |
getTransactionalResource()
Deprecated. |
String |
getUniqueResourceName()
Deprecated. |
String |
getValidatingQuery()
Deprecated. |
XADataSource |
getXaDataSource()
Deprecated. |
String |
getXidFormat()
Deprecated. |
String |
isExclusiveConnectionMode()
Deprecated. |
void |
setConnectionPoolSize(String poolSize)
Deprecated. |
void |
setConnectionTimeout(String timeout)
Deprecated. |
void |
setDataSourceName(String name)
Deprecated. |
void |
setExclusiveConnectionMode(String mode)
Deprecated. |
void |
setLoginTimeout(int seconds)
Deprecated. |
void |
setLogWriter(PrintWriter out)
Deprecated. |
void |
setTestOnBorrow(String value)
Deprecated. |
void |
setUniqueResourceName(String resourceName)
Deprecated. |
void |
setValidatingQuery(String query)
Deprecated. |
void |
setXaDataSource(XADataSource xads)
Deprecated. |
void |
setXidFormat(String factory)
Deprecated. |
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 DataSourceBean()
Method Detail |
---|
public void setTestOnBorrow(String value)
public String getTestOnBorrow()
public void setDataSourceName(String name)
public String getDataSourceName()
public void setXaDataSource(XADataSource xads)
public XADataSource getXaDataSource()
public void setUniqueResourceName(String resourceName)
public String getUniqueResourceName()
public void setXidFormat(String factory)
public String getXidFormat()
public void setConnectionPoolSize(String poolSize)
public String getConnectionPoolSize()
public void setConnectionTimeout(String timeout)
public String getConnectionTimeout()
public void setExclusiveConnectionMode(String mode)
public String isExclusiveConnectionMode()
public TransactionalResource getTransactionalResource()
public void setValidatingQuery(String query)
public String getValidatingQuery()
public void validate() throws SQLException
SQLException
- If validation fails.public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String user, String pw) throws SQLException
getConnection
in interface DataSource
SQLException
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.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.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.public Connection getConnection(String user, String pw, HeuristicMessage msg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
user
- The user name to use.pw
- The password.msg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface DataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface DataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface DataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface DataSource
SQLException
public void close() throws SQLException
SQLException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |