org.apithefire.sql.c3p0
Class C3p0ConnectionPool

java.lang.Object
  extended by org.apithefire.sql.c3p0.C3p0ConnectionPool
All Implemented Interfaces:
ConnectionPool, ConnectionProvider, Closeable

public class C3p0ConnectionPool
extends java.lang.Object
implements ConnectionPool

A C3P0 connection pool.

Author:
Chew Boon Aik

Nested Class Summary
static class C3p0ConnectionPool.C3p0ConnectionPoolBuilder
          A C3p0ConnectionPool builder.
 
Nested classes/interfaces inherited from interface org.apithefire.sql.connect.ConnectionPool
ConnectionPool.ConnectionPoolBuilder
 
Method Summary
 void close()
           
 java.sql.Connection getConnection()
           
 int getMaxPoolSize()
           
 int getMinPoolSize()
           
static C3p0ConnectionPool.C3p0ConnectionPoolBuilder newBuilder()
          Returns a new C3p0ConnectionPool.C3p0ConnectionPoolBuilder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newBuilder

@BuilderFactory
public static C3p0ConnectionPool.C3p0ConnectionPoolBuilder newBuilder()
Returns a new C3p0ConnectionPool.C3p0ConnectionPoolBuilder.


getMinPoolSize

public int getMinPoolSize()
Specified by:
getMinPoolSize in interface ConnectionPool

getMaxPoolSize

public int getMaxPoolSize()
Specified by:
getMaxPoolSize in interface ConnectionPool

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface ConnectionProvider

close

public void close()
Specified by:
close in interface ConnectionPool
Specified by:
close in interface Closeable


Copyright © 2008. All Rights Reserved.