|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jdbc.nonxa.DriverManagerDataSource
AtomikosNonXADataSourceBean
should be used instead.
public class DriverManagerDataSource
A DataSource implementation that uses the DriverManager to get connections. Instances can be used to access JDBC drivers that don't offer a DataSource implementation of their own. Note: to do transactions, you should wrap instances in a NonXADataSourceImp object!
Constructor Summary | |
---|---|
DriverManagerDataSource()
Deprecated. |
Method Summary | |
---|---|
Connection |
getConnection()
Deprecated. |
Connection |
getConnection(String user,
String pw)
Deprecated. |
String |
getDriverClassName()
Deprecated. |
int |
getLoginTimeout()
Deprecated. |
PrintWriter |
getLogWriter()
Deprecated. |
String |
getUrl()
Deprecated. |
String |
getUser()
Deprecated. |
void |
setDriverClassName(String string)
Deprecated. |
void |
setLoginTimeout(int secs)
Deprecated. |
void |
setLogWriter(PrintWriter arg0)
Deprecated. |
void |
setPassword(String string)
Deprecated. |
void |
setUrl(String string)
Deprecated. |
void |
setUser(String string)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverManagerDataSource()
Method Detail |
---|
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection()
public Connection getConnection(String user, String pw) throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection(java.lang.String,
java.lang.String)
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface DataSource
SQLException
DataSource.getLogWriter()
public void setLogWriter(PrintWriter arg0) throws SQLException
setLogWriter
in interface DataSource
SQLException
DataSource.setLogWriter(java.io.PrintWriter)
public void setLoginTimeout(int secs) throws SQLException
setLoginTimeout
in interface DataSource
SQLException
DataSource.setLoginTimeout(int)
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface DataSource
SQLException
DataSource.getLoginTimeout()
public String getUrl()
public String getUser()
public void setPassword(String string)
public void setUrl(String string)
public void setUser(String string)
public String getDriverClassName()
public void setDriverClassName(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |