Package com.microsoft.sqlserver.jdbc
Class SQLServerPooledConnection
java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerPooledConnection
- All Implemented Interfaces:
Serializable,PooledConnection
- Direct Known Subclasses:
SQLServerXAConnection
Represents a physical database connection in a connection pool. If provides methods for the connection pool manager
to manage the connection pool. Applications typically do not instantiate these connections directly.
- See Also:
- Serialized Form
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddStatementEventListener(StatementEventListener listener)voidclose()Returns an object handle for the physical connection that this PooledConnection object represents.voidvoidtoString()Provides a helper function to provide an ID string suitable for tracing.
-
Method Details
-
toString
Provides a helper function to provide an ID string suitable for tracing. -
getConnection
Returns an object handle for the physical connection that this PooledConnection object represents.- Specified by:
getConnectionin interfacePooledConnection- Returns:
- a Connection object that is a handle to this PooledConnection object
- Throws:
SQLException- when an error occurs
-
addConnectionEventListener
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
close
- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
removeConnectionEventListener
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-