|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.informix.jdbcx.IfxPooledConnection
A PooledConnection object is a connection object that provides hooks for connection pool management.
Constructor Summary | |
IfxPooledConnection()
Empty constructor |
|
IfxPooledConnection(java.lang.String luser,
java.lang.String lpasswd,
IfxConnectionPoolDataSource tcpds)
Construct a IfxPooledConnection object with a given IfxConnectionPoolDataSource object. |
Method Summary | |
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Add an event listener. |
void |
close()
Close the database connection. |
java.sql.Connection |
getConnection()
Extract the physical connection from this handle. |
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Remove an event listener. |
void |
setTimeInPool()
Sets timeInPool to the Current time. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IfxPooledConnection() throws java.sql.SQLException
Empty constructor
java.sql.SQLException
- if an error occurs while instantiating
a IfxPooledConnection object.public IfxPooledConnection(java.lang.String luser, java.lang.String lpasswd, IfxConnectionPoolDataSource tcpds) throws java.sql.SQLException
Construct a IfxPooledConnection object with a given IfxConnectionPoolDataSource object.
tcpds
- a IfxConnectionPoolDataSource object
java.sql.SQLException
- if an error occurs while instantiating
a IfxPooledConnection object.Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
Extract the physical connection from this handle.
getConnection
in interface javax.sql.PooledConnection
java.sql.SQLException
- if a database-access error occurs.public void close() throws java.sql.SQLException
Close the database connection.
close
in interface javax.sql.PooledConnection
java.sql.SQLException
- if a database-access error occurs.public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Add an event listener.
addConnectionEventListener
in interface javax.sql.PooledConnection
listener
- a ConnectionEventListener objectpublic void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Remove an event listener.
removeConnectionEventListener
in interface javax.sql.PooledConnection
listener
- a ConnectionEventListener objectpublic void setTimeInPool()
Sets timeInPool to the Current time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |