public class XADataSourceRelay extends Object implements Relay<XADataSource>, XADataSource
| Modifier and Type | Field and Description |
|---|---|
com.impossibl.jdbc.spy.XADataSourceListener |
listener |
XADataSource |
target |
| Constructor and Description |
|---|
XADataSourceRelay(XADataSource target,
com.impossibl.jdbc.spy.XADataSourceListener listener) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
XADataSource |
getTarget() |
XAConnection |
getXAConnection() |
XAConnection |
getXAConnection(String user,
String password) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public XADataSource target
public com.impossibl.jdbc.spy.XADataSourceListener listener
public XADataSourceRelay(XADataSource target, com.impossibl.jdbc.spy.XADataSourceListener listener)
public XADataSource getTarget()
getTarget in interface Relay<XADataSource>public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic XAConnection getXAConnection() throws SQLException
getXAConnection in interface XADataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection in interface XADataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLException