public class SpyPooledConnection
extends java.lang.Object
implements javax.sql.PooledConnection
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_id |
protected static L10N |
L |
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
SpyPooledConnection(javax.sql.PooledConnection conn,
java.lang.String id)
Creates a new SpyConnection.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener) |
void |
addStatementEventListener(javax.sql.StatementEventListener listener) |
void |
close() |
java.sql.Connection |
getConnection() |
protected void |
log(long start,
java.lang.String msg) |
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener) |
void |
removeStatementEventListener(javax.sql.StatementEventListener listener) |
protected long |
start() |
java.lang.String |
toString() |
protected static final java.util.logging.Logger log
protected static final L10N L
protected java.lang.String _id
public SpyPooledConnection(javax.sql.PooledConnection conn, java.lang.String id)
protected long start()
protected void log(long start, java.lang.String msg)
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
addConnectionEventListener
in interface javax.sql.PooledConnection
public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
removeConnectionEventListener
in interface javax.sql.PooledConnection
public void addStatementEventListener(javax.sql.StatementEventListener listener)
addStatementEventListener
in interface javax.sql.PooledConnection
public void removeStatementEventListener(javax.sql.StatementEventListener listener)
removeStatementEventListener
in interface javax.sql.PooledConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.PooledConnection
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface javax.sql.PooledConnection
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object