public class SQLServerPooledConnection extends Object implements PooledConnection
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Registers the given event listener so that it will be notified when an event occurs on this
PooledConnection object.
|
void |
addStatementEventListener(StatementEventListener listener) |
void |
close()
Closes the physical connection that this PooledConnection object represents.
|
Connection |
getConnection()
Creates an object handle for the physical connection that this PooledConnection object represents.
|
void |
removeConnectionEventListener(ConnectionEventListener listener)
Remove a listener.
|
void |
removeStatementEventListener(StatementEventListener listener) |
String |
toString()
This is a helper function to provide an ID string suitable for tracing.
|
public String toString()
public Connection getConnection() throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void close()
throws SQLException
close in interface PooledConnectionSQLExceptionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic void addStatementEventListener(StatementEventListener listener)
addStatementEventListener in interface PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener in interface PooledConnectionCopyright © 2016. All rights reserved.