|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.schema.SimpleDriverDataSource org.apache.openjpa.jdbc.schema.DBCPDriverDataSource
public abstract class DBCPDriverDataSource
Commons DBCP basic pooling driver data source. The commons-dbcp packages must be on the class path for this plugin to work, as it WILL NOT fall back to non-DBCP mode if they are missing. For automatic usage of Commons DBCP when available, use AutoDriverDataSource instead.
Field Summary | |
---|---|
protected JDBCConfiguration |
conf
|
Fields inherited from class org.apache.openjpa.jdbc.schema.SimpleDriverDataSource |
---|
_eloc, _loc |
Constructor Summary | |
---|---|
DBCPDriverDataSource()
|
Method Summary | |
---|---|
void |
close()
|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
Connection |
getConnection(Properties props)
|
protected Connection |
getDBCPConnection(Properties props)
|
protected DataSource |
getDBCPDataSource(Properties props)
|
protected boolean |
isDBCPDataSource()
This method should not throw an exception, as it is called by AutoDriverDataSource to determine if user already specified to use Commons DBCP. |
protected static boolean |
isDBCPLoaded(ClassLoader cl)
This method should not throw an exception, as it is called by AutoDriverDataSource to determine if it should use DBCP or not based on if org.apache.commons.dbcp.BasicDataSource can be loaded. |
static DBCPDriverDataSource |
newInstance()
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JDBCConfiguration conf
Constructor Detail |
---|
public DBCPDriverDataSource()
Method Detail |
---|
public static DBCPDriverDataSource newInstance()
public Connection getConnection(Properties props) throws SQLException
getConnection
in class SimpleDriverDataSource
SQLException
public void close() throws SQLException
close
in interface Closeable
SQLException
protected Connection getDBCPConnection(Properties props) throws SQLException
SQLException
protected DataSource getDBCPDataSource(Properties props)
protected boolean isDBCPDataSource()
protected static boolean isDBCPLoaded(ClassLoader cl)
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |