org.caleigo.core.service
Class JDBCPreparedStatementDataService.ConnectionPool

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

protected class JDBCPreparedStatementDataService.ConnectionPool
extends java.lang.Object


Constructor Summary
JDBCPreparedStatementDataService.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCPreparedStatementDataService.ConnectionPool

public JDBCPreparedStatementDataService.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

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.