org.caleigo.core.service
Class JDBCDataService.ConnectionPool

java.lang.Object
  extended byorg.caleigo.core.service.JDBCDataService.ConnectionPool
Enclosing class:
JDBCDataService

protected class JDBCDataService.ConnectionPool
extends java.lang.Object


Constructor Summary
JDBCDataService.ConnectionPool(int maxSize)
          Creates a connection pool with the maximum size maxSize.
 
Method Summary
 java.sql.Connection getConnection()
           
 int getMaxSize()
           
 void releaseConnection(java.sql.Connection connection)
           
 void setMaxConnectionPoolSize(int maxConnectionPoolSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDataService.ConnectionPool

public JDBCDataService.ConnectionPool(int maxSize)
Creates a connection pool with the maximum size maxSize. Setting the maximum size to zero means that every call to getConnection will create a new connection.

Method Detail

setMaxConnectionPoolSize

public void setMaxConnectionPoolSize(int maxConnectionPoolSize)

getConnection

public java.sql.Connection getConnection()
                                  throws DataServiceException
Throws:
DataServiceException

getMaxSize

public int getMaxSize()

releaseConnection

public void releaseConnection(java.sql.Connection connection)
                       throws DataServiceException
Throws:
DataServiceException


Copyright © 2005 Caleigo. All Rights Reserved.