|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jdbc.nonxa.NonXAConnectionFactory
public class NonXAConnectionFactory
Constructor Summary | |
---|---|
NonXAConnectionFactory(DataSource dataSource,
String userName,
String password)
Create a new instance. |
Method Summary | |
---|---|
protected DataSource |
getDataSource()
|
int |
getLoginTimeout()
Get the login timeout in seconds |
PrintWriter |
getLogWriter()
Gets the log writer for debugging. |
protected String |
getPassword()
|
XPooledConnection |
getPooledConnection()
|
protected String |
getUserName()
|
void |
setLoginTimeout(int secs)
Sets the login timeout. |
void |
setLogWriter(PrintWriter pw)
Sets the log writer for debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonXAConnectionFactory(DataSource dataSource, String userName, String password)
dataSource
- The underlying (non-XA) datasource to use. For instance, a
MySQL datasource.userName
- The user name, or empty string if not applicable.password
- The password for the given user, or empty if the user is
empty.Method Detail |
---|
protected String getUserName()
protected String getPassword()
protected DataSource getDataSource()
public XPooledConnection getPooledConnection() throws SQLException
getPooledConnection
in interface ConnectionFactory
SQLException
ConnectionFactory.getPooledConnection()
public PrintWriter getLogWriter() throws SQLException
ConnectionFactory
getLogWriter
in interface ConnectionFactory
SQLException
- On error.ConnectionFactory.getLogWriter()
public void setLogWriter(PrintWriter pw) throws SQLException
ConnectionFactory
setLogWriter
in interface ConnectionFactory
pw
- The print writer to log to.
SQLException
- On error.ConnectionFactory.setLogWriter(java.io.PrintWriter)
public int getLoginTimeout() throws SQLException
ConnectionFactory
getLoginTimeout
in interface ConnectionFactory
SQLException
- On error.ConnectionFactory.getLoginTimeout()
public void setLoginTimeout(int secs) throws SQLException
ConnectionFactory
setLoginTimeout
in interface ConnectionFactory
secs
- The no of seconds.
SQLException
- On error.ConnectionFactory.setLoginTimeout(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |