public class SQLServerPooledConnection extends Object implements PooledConnection
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
Connection |
getConnection()
Creates an object handle for the physical connection that this PooledConnection object represents.
|
void |
removeConnectionEventListener(ConnectionEventListener 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 PooledConnectionSQLException - when an error occurspublic 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 © 2017 Microsoft Corporation. All rights reserved.