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.voidinitDBDictionary(DBDictionary dict) Initialize self and dictionary once available.voidsetClassLoader(ClassLoader classLoader) JDBC password.voidsetConnectionDriverName(String connectionDriverName) Driver class name.voidConfiguration of datasource properties.voidsetConnectionPassword(String connectionPassword) JDBC password.voidConfiguration of connection.voidsetConnectionURL(String connectionURL) JDBC URL.voidsetConnectionUserName(String connectionUserName) JDBC user name.Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods 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.
-