public class SpyConnectionPoolDataSource
extends java.lang.Object
implements javax.sql.ConnectionPoolDataSource
| Modifier and Type | Field and Description |
|---|---|
protected static L10N |
L |
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
SpyConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource dataSource,
java.lang.String id)
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.PooledConnection |
getPooledConnection()
Returns the pooled connection.
|
javax.sql.PooledConnection |
getPooledConnection(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 SpyConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource dataSource,
java.lang.String id)
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.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()
getParentLogger in interface javax.sql.CommonDataSourceprotected long start()
protected void log(long start,
java.lang.String msg)
public java.lang.String toString()
toString in class java.lang.Object