public class SpyXADataSource
extends java.lang.Object
implements javax.sql.XADataSource
| Modifier and Type | Field and Description |
|---|---|
protected static L10N |
L |
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
SpyXADataSource(javax.sql.XADataSource dataSource)
Creates a new SpyDriver.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout()
Returns the login timeout.
|
java.io.PrintWriter |
getLogWriter()
Returns the log writer
|
java.util.logging.Logger |
getParentLogger() |
javax.sql.XAConnection |
getXAConnection()
Returns the XAConnection.
|
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Returns the XAConnection.
|
protected void |
log(long start,
java.lang.String msg) |
void |
setLoginTimeout(int timeout)
Sets the login timeout.
|
void |
setLogWriter(java.io.PrintWriter log)
Sets the log writer.
|
protected long |
start() |
java.lang.String |
toString() |
protected static final java.util.logging.Logger log
protected static final L10N L
public SpyXADataSource(javax.sql.XADataSource dataSource)
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLExceptionpublic javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int timeout)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter log)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedExceptionprotected long start()
protected void log(long start,
java.lang.String msg)
public java.lang.String toString()
toString in class java.lang.Object