jodd.db.pool
Class OracleConnectionPool

java.lang.Object
  extended byjodd.db.pool.OracleConnectionPool
All Implemented Interfaces:
ConnectionPool

public class OracleConnectionPool
extends java.lang.Object
implements ConnectionPool

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

OracleConnectionPool

public OracleConnectionPool()
Method Detail

setUrl

public void setUrl(java.lang.String s)

setUser

public void setUser(java.lang.String s)

setPassword

public void setPassword(java.lang.String s)

setMaxLimit

public void setMaxLimit(int i)

setMinLimit

public void setMinLimit(int i)

getCacheSize

public int getCacheSize()
Return the total no of connections in the Cache.

Returns:
total no of connections opened.

getActiveSize

public int getActiveSize()
Returns the total no of connections that are being used.

Returns:
total no of active connections.

init

public void init()
          throws java.sql.SQLException
Description copied from interface: ConnectionPool
Initialize pool with current object state.

Specified by:
init in interface ConnectionPool
Throws:
java.sql.SQLException

close

public void close()
Description copied from interface: ConnectionPool
Close pool when it is not needed anymore.

Specified by:
close in interface ConnectionPool

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Get one free connection from the connection pool.

Specified by:
getConnection in interface ConnectionPool
Returns:
Connection object representing free database connection
Throws:
java.lang.Exception
java.sql.SQLException

freeConnection

public void freeConnection(java.sql.Connection conn)
Return connection to connection pool

Specified by:
freeConnection in interface ConnectionPool
Parameters:
conn - database connection


Jodd v0.24.5 Javadoc