|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.sql.spy.SpyConnectionPoolDataSource
public class SpyConnectionPoolDataSource
Spying on a driver.
| Field Summary | |
|---|---|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
SpyConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource dataSource,
java.lang.String id)
Creates a new SpyDriver. |
|
| Method Summary | |
|---|---|
int |
getLoginTimeout()
Returns the login timeout. |
java.io.PrintWriter |
getLogWriter()
Returns the log writer |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
protected static final L10N L
| Constructor Detail |
|---|
public SpyConnectionPoolDataSource(javax.sql.ConnectionPoolDataSource dataSource,
java.lang.String id)
| Method Detail |
|---|
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLException
public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLoginTimeout(int timeout)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLogWriter(java.io.PrintWriter log)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionprotected long start()
protected void log(long start,
java.lang.String msg)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||