Class AutoDriverDataSource
java.lang.Object
org.apache.openjpa.jdbc.schema.SimpleDriverDataSource
org.apache.openjpa.jdbc.schema.DBCPDriverDataSource
org.apache.openjpa.jdbc.schema.AutoDriverDataSource
- All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource, DriverDataSource, Configurable, Closeable
Automatic Commons DBCP pooling or Simple non-pooling driver data source.
If the commons-dbcp packages are on the class path, then they will be used,
else it will fall back to non-DBCP mode.
-
Field Summary
Fields inherited from class DBCPDriverDataSource
confFields inherited from class SimpleDriverDataSource
_eloc, _loc -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DBCPDriverDataSource
close, endConfiguration, getDBCPConnection, getDBCPDataSource, isDBCPDataSource, isDBCPLoaded, setConfiguration, startConfigurationMethods inherited from class SimpleDriverDataSource
createConnectionDecorators, getClassLoader, getConnection, getConnection, getConnectionDriverName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionURL, getConnectionUserName, getLoginTimeout, getLogWriter, getParentLogger, getSimpleConnection, getSimpleDriver, initDBDictionary, isWrapperFor, setClassLoader, setConnectionDriverName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionURL, setConnectionUserName, setLoginTimeout, setLogWriter, unwrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommonDataSource
createShardingKeyBuilderMethods inherited from interface DataSource
createConnectionBuilder
-
Constructor Details
-
AutoDriverDataSource
public AutoDriverDataSource()
-
-
Method Details
-
getConnection
- Overrides:
getConnectionin classDBCPDriverDataSource- Throws:
SQLException
-