org.jpox.dbcp
Class DBCPDataSourceFactory
java.lang.Object
org.jpox.dbcp.DBCPDataSourceFactory
- public class DBCPDataSourceFactory
- extends java.lang.Object
Plugin for the creation of a DBCP connection pool.
Note that all Apache DBCP classes are named explicitly in the code to avoid loading
them at class initialisation.
(see http://jakarta.apache.org/commons/dbcp/)
Also see
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/package-summary.html#package_description
for javadocs that give pretty much the only useful description of DBCP.
- Version:
- $Revision: 1.9 $
Field Summary |
protected static org.jpox.util.Localiser |
LOCALISER
Localisation of messages. |
Method Summary |
static javax.sql.DataSource |
makePooledDataSource(java.lang.String dbDriver,
java.lang.String dbURL,
java.lang.String dbUser,
java.lang.String dbPassword,
java.lang.String configFile)
Method to make a DBCP DataSource for use internally in JPOX. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALISER
protected static final org.jpox.util.Localiser LOCALISER
- Localisation of messages.
DBCPDataSourceFactory
public DBCPDataSourceFactory()
makePooledDataSource
public static javax.sql.DataSource makePooledDataSource(java.lang.String dbDriver,
java.lang.String dbURL,
java.lang.String dbUser,
java.lang.String dbPassword,
java.lang.String configFile)
- Method to make a DBCP DataSource for use internally in JPOX.
- Parameters:
dbDriver
- The database driver namedbURL
- The database URLdbUser
- The database usernamedbPassword
- The database passwordconfigFile
- Location of any configuration properties file
- Returns:
- The DataSource
- Throws:
java.lang.Exception
- Thrown if an error occurs during creation
Copyright © 2003-2007 Java Persistent Objects (JPOX). All Rights Reserved.