PooledConnection
SQLServerXAConnection
public class SQLServerPooledConnection extends Object implements PooledConnection
Modifier and Type | Method | 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 PooledConnection
SQLException
- when an error occurspublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public void close() throws SQLException
close
in interface PooledConnection
SQLException
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener
in interface PooledConnection
public void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener
in interface PooledConnection
Copyright © 2018 Microsoft Corporation. All rights reserved.