| |
|
| java.lang.Object org.enhydra.jdbc.standard.StandardPooledConnection
All known Subclasses: org.enhydra.jdbc.informix.InformixPooledConnection, org.enhydra.jdbc.standard.StandardXAConnection, org.enhydra.jdbc.sybase.SybasePooledConnection,
StandardPooledConnection | public class StandardPooledConnection implements PooledConnection(Code) | | Provides an implementation of javax.sql.PooledConnection which
is completely generic (i.e. it relies only on JDBC 1 functionality).
This class maintains a physical database connection which is
passed to each StandardXAConnectionHandle when it is created. It is the
StandardXAConnectionHandle object which the application receives and which
it perceives as the java.sql.Connection object.
StandardXAConnectionHandle objects pass PreparedStatements back to the
StandardPooledConnection so that they can be retained across
StandardXAConnectionHandle instantiations.
|
isClosed | boolean isClosed(Code) | | |
closeEvent | void closeEvent()(Code) | | Notifies all listeners that the StandardConnectionHandle created by this
PooledConnection has been closed.
|
connectionErrorOccurred | public void connectionErrorOccurred(ConnectionEvent event)(Code) | | Invoked when a fatal connection error occurs,
just before an SQLException is thrown to the application
This method is automatically called when a fatal error
is detected on the base connection. The base connection
is the actual connection that backs the connection
handle provided by the getConnection() method
|
getConnection | public synchronized Connection getConnection() throws java.sql.SQLException(Code) | | Creates a new StandardConnectionHandle for use by an application.
If there is already a StandardConnectionHandle in use then it is
closed (i.e. the application has the connection withdrawn).
|
getPhysicalConnection | public Connection getPhysicalConnection()(Code) | | Access method allowing access to the underlying physical connection.
|
newConnectionHandle | protected void newConnectionHandle()(Code) | | |
|
|
|