SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.datasource
Interface DataSourceImpl.Pool

All Known Implementing Classes:
DataSourceImpl.SortablePool
Enclosing class:
DataSourceImpl

public static interface DataSourceImpl.Pool


Method Summary
 void clean()
          Cleanup possibly dead connections from the pool.
 void close(PoolConnection conn, boolean remove)
          Close a pooled connection.
 void closeAll()
          Close all pooled connections.
 Connection getConnection(JDBCConnectionRequestInfo cri)
          Obtain a connection from the pool.
 int getMaxPool()
           
 int getMinPool()
           
 void setMaxPool(int max)
          Set the maximum size of the pool.
 void setMinPool(int min)
           
 

Method Detail

setMaxPool

public void setMaxPool(int max)
Set the maximum size of the pool.
Parameters:
max - the maximum size

getMaxPool

public int getMaxPool()
Returns:
the maximum size of the pool.

setMinPool

public void setMinPool(int min)
Parameters:
min - the minimum size of the pool.

getMinPool

public int getMinPool()
Returns:
the minimum size of the pool.

close

public void close(PoolConnection conn,
                  boolean remove)
           throws SQLException
Close a pooled connection.
Parameters:
conn - the connection to close.
remove - if true, remove the connection from the pool.

clean

public void clean()
           throws SQLException
Cleanup possibly dead connections from the pool.

getConnection

public Connection getConnection(JDBCConnectionRequestInfo cri)
                         throws SQLException
Obtain a connection from the pool.
Parameters:
cri - the request information.
Returns:
a pooled or new Connection.

closeAll

public void closeAll()
Close all pooled connections.

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.