|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jnetdirect.jsql.JSQLConnectionPool
public class JSQLConnectionPool
JSQLConnectionPool is deprecated. Please use the JSQLPoolingDataSource instead.
Constructor Summary | |
---|---|
JSQLConnectionPool(JSQLConnectionPoolDataSource ds)
Create a pool. |
Method Summary | |
---|---|
void |
closeAllConnections()
Close all connection in the pool. |
int |
getAvailableConnectionCount()
Return the total number of physical connections currently available. |
java.sql.Connection |
getConnection()
Get a connection from the pool. |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password)
Get a connection from the pool. |
int |
getConnectionCount()
Return the total number of physical connections open in the pool. |
int |
getErroredConnectionCount()
Return the total number of physical connections that were removed from the pool due to errors in their connections. |
int |
getLogicalOpennedCount()
Return the total number of logical connections issued. |
java.lang.String |
getStatus()
Return the status of the pool. |
int |
getTimeOutConnectionCount()
Return the total number of physical connections that were closed because they exceeded the idle time for timeout setting. |
int |
getUsedConnectionCount()
Return the total number of physical connections currently in use. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSQLConnectionPool(JSQLConnectionPoolDataSource ds)
ds
- the datasourceMethod Detail |
---|
public java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
user
- the useruser
- the password
java.sql.SQLException
public java.lang.String getStatus()
public void closeAllConnections() throws java.sql.SQLException
java.sql.SQLException
public int getConnectionCount()
public int getUsedConnectionCount()
public int getAvailableConnectionCount()
public int getErroredConnectionCount()
public int getTimeOutConnectionCount()
public int getLogicalOpennedCount()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |