Package org.apache.openjpa.jdbc.schema
Interface DriverDataSource
- All Superinterfaces:
CommonDataSource
,DataSource
,Wrapper
- All Known Implementing Classes:
AutoDriverDataSource
,DBCPDriverDataSource
,SimpleDriverDataSource
A DataSource that allows additional configuration options to be set
into it, so that it can wrap a JDBC driver or other DataSource.
- Author:
- Marc Prud'hommeaux
-
Method Summary
Modifier and TypeMethodDescriptionProvide any built-in decorators; may be null.Classloader for loading driver class, etc.Driver class name.Configuration of datasource properties.Configuration of connection.JDBC URL.JDBC user name.void
initDBDictionary
(DBDictionary dict) Initialize self and dictionary once available.void
setClassLoader
(ClassLoader classLoader) JDBC password.void
setConnectionDriverName
(String connectionDriverName) Driver class name.void
Configuration of datasource properties.void
setConnectionPassword
(String connectionPassword) JDBC password.void
Configuration of connection.void
setConnectionURL
(String connectionURL) JDBC URL.void
setConnectionUserName
(String connectionUserName) JDBC user name.Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
setConnectionURL
JDBC URL. -
getConnectionURL
String getConnectionURL()JDBC URL. -
setConnectionDriverName
Driver class name. -
getConnectionDriverName
String getConnectionDriverName()Driver class name. -
setConnectionUserName
JDBC user name. -
getConnectionUserName
String getConnectionUserName()JDBC user name. -
setConnectionPassword
JDBC password. -
setClassLoader
JDBC password. -
getClassLoader
ClassLoader getClassLoader()Classloader for loading driver class, etc. -
setConnectionFactoryProperties
Configuration of datasource properties. -
getConnectionFactoryProperties
Properties getConnectionFactoryProperties()Configuration of datasource properties. -
setConnectionProperties
Configuration of connection. -
getConnectionProperties
Properties getConnectionProperties()Configuration of connection. -
createConnectionDecorators
List<ConnectionDecorator> createConnectionDecorators()Provide any built-in decorators; may be null. -
initDBDictionary
Initialize self and dictionary once available.
-