|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.db.pool.OracleConnectionPool
Oracle connection pool uses OracleConnectionCacheImpl and adopts it to ConnectionPool interface.
Constructor Summary | |
OracleConnectionPool()
|
Method Summary | |
void |
close()
Close pool when it is not needed anymore. |
void |
freeConnection(java.sql.Connection conn)
Return connection to connection pool |
int |
getActiveSize()
Returns the total no of connections that are being used. |
int |
getCacheSize()
Return the total no of connections in the Cache. |
java.sql.Connection |
getConnection()
Get one free connection from the connection pool. |
void |
init()
Initialize pool with current object state. |
void |
setMaxLimit(int i)
|
void |
setMinLimit(int i)
|
void |
setPassword(java.lang.String s)
|
void |
setUrl(java.lang.String s)
|
void |
setUser(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OracleConnectionPool()
Method Detail |
public void setUrl(java.lang.String s)
public void setUser(java.lang.String s)
public void setPassword(java.lang.String s)
public void setMaxLimit(int i)
public void setMinLimit(int i)
public int getCacheSize()
public int getActiveSize()
public void init() throws java.sql.SQLException
ConnectionPool
init
in interface ConnectionPool
java.sql.SQLException
public void close()
ConnectionPool
close
in interface ConnectionPool
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface ConnectionPool
java.lang.Exception
java.sql.SQLException
public void freeConnection(java.sql.Connection conn)
freeConnection
in interface ConnectionPool
conn
- database connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |