Package org.apache.openjpa.jdbc.schema
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:
java.sql.Wrapper
,javax.sql.CommonDataSource
,javax.sql.DataSource
,DriverDataSource
,Configurable
,Closeable
public class AutoDriverDataSource extends DBCPDriverDataSource
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 org.apache.openjpa.jdbc.schema.DBCPDriverDataSource
conf
-
Fields inherited from class org.apache.openjpa.jdbc.schema.SimpleDriverDataSource
_eloc, _loc
-
-
Constructor Summary
Constructors Constructor Description AutoDriverDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
getConnection(java.util.Properties props)
-
Methods inherited from class org.apache.openjpa.jdbc.schema.DBCPDriverDataSource
close, endConfiguration, getDBCPConnection, getDBCPDataSource, isDBCPDataSource, isDBCPLoaded, setConfiguration, startConfiguration
-
Methods inherited from class org.apache.openjpa.jdbc.schema.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, unwrap
-
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection(java.util.Properties props) throws java.sql.SQLException
- Overrides:
getConnection
in classDBCPDriverDataSource
- Throws:
java.sql.SQLException
-
-