javax.sql.PooledConnectionSQLServerXAConnectionpublic class SQLServerPooledConnection
extends java.lang.Object
implements javax.sql.PooledConnection
| Modifier and Type | Method | Description |
|---|---|---|
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener) |
|
void |
addStatementEventListener(javax.sql.StatementEventListener listener) |
|
void |
close() |
|
java.sql.Connection |
getConnection() |
Creates an object handle for the physical connection that this PooledConnection object represents.
|
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener) |
|
void |
removeStatementEventListener(javax.sql.StatementEventListener listener) |
|
java.lang.String |
toString() |
This is a helper function to provide an ID string suitable for tracing.
|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.PooledConnectionjava.sql.SQLException - when an error occurspublic void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
addConnectionEventListener in interface javax.sql.PooledConnectionpublic void close()
throws java.sql.SQLException
close in interface javax.sql.PooledConnectionjava.sql.SQLExceptionpublic void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.sql.PooledConnectionpublic void addStatementEventListener(javax.sql.StatementEventListener listener)
addStatementEventListener in interface javax.sql.PooledConnectionpublic void removeStatementEventListener(javax.sql.StatementEventListener listener)
removeStatementEventListener in interface javax.sql.PooledConnectionCopyright © 2018 Microsoft Corporation. All rights reserved.