Movatterモバイル変換


[0]ホーム

URL:


         


Interface PooledConnection

All Known Subinterfaces:
XAConnection

public interfacePooledConnection

A PooledConnection object is a connection object that provides hooks for connection pool management. A PooledConnection object represents a physical connection to a data source.


addConnectionEventListener(ConnectionEventListener listener)
           Add an event listener.
close()
          Close the physical connection.
getConnection()
          Create an object handle for this physical connection.
removeConnectionEventListener(ConnectionEventListener listener)
           Remove an event listener.
 

getConnection

public java.sql.ConnectiongetConnection()                                  throws java.sql.SQLException

Create an object handle for this physical connection. The object returned is a temporary handle used by application code to refer to a physical connection that is being pooled.

Returns:
a Connection object
Throws:
java.sql.SQLException - if a database-access error occurs.

close

public voidclose()           throws java.sql.SQLException

Close the physical connection.

Throws:
java.sql.SQLException - if a database-access error occurs.

addConnectionEventListener

public voidaddConnectionEventListener(ConnectionEventListener listener)

Add an event listener.


removeConnectionEventListener

public voidremoveConnectionEventListener(ConnectionEventListener listener)

Remove an event listener.


         


[8]ページ先頭

©2009-2025 Movatter.jp