org.apithefire.sql.c3p0
Class C3p0ConnectionPool.C3p0ConnectionPoolBuilder

java.lang.Object
  extended by org.apithefire.sql.c3p0.C3p0ConnectionPool.C3p0ConnectionPoolBuilder
All Implemented Interfaces:
ConnectionPool.ConnectionPoolBuilder, Builder
Enclosing class:
C3p0ConnectionPool

public static class C3p0ConnectionPool.C3p0ConnectionPoolBuilder
extends java.lang.Object
implements ConnectionPool.ConnectionPoolBuilder

A C3p0ConnectionPool builder.

Author:
Chew Boon Aik

Method Summary
 C3p0ConnectionPool build()
          Builds a new C3p0ConnectionPool.
 C3p0ConnectionPool.C3p0ConnectionPoolBuilder setConnectionProvider(ConnectionProvider connectionProvider)
           
 C3p0ConnectionPool.C3p0ConnectionPoolBuilder setMaxPoolSize(int maxPoolSize)
           
 C3p0ConnectionPool.C3p0ConnectionPoolBuilder setMinPoolSize(int minPoolSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConnectionProvider

public C3p0ConnectionPool.C3p0ConnectionPoolBuilder setConnectionProvider(ConnectionProvider connectionProvider)
Specified by:
setConnectionProvider in interface ConnectionPool.ConnectionPoolBuilder

setMinPoolSize

public C3p0ConnectionPool.C3p0ConnectionPoolBuilder setMinPoolSize(int minPoolSize)
Specified by:
setMinPoolSize in interface ConnectionPool.ConnectionPoolBuilder

setMaxPoolSize

public C3p0ConnectionPool.C3p0ConnectionPoolBuilder setMaxPoolSize(int maxPoolSize)
Specified by:
setMaxPoolSize in interface ConnectionPool.ConnectionPoolBuilder

build

public C3p0ConnectionPool build()
Builds a new C3p0ConnectionPool.

Specified by:
build in interface ConnectionPool.ConnectionPoolBuilder
Specified by:
build in interface Builder
Returns:
the build C3p0ConnectionPool
See Also:
DataSources.pooledDataSource(javax.sql.DataSource)


Copyright © 2008. All Rights Reserved.