Package org.apache.openjpa.jdbc.schema
Interface DriverDataSource
-
- All Superinterfaces:
javax.sql.CommonDataSource
,javax.sql.DataSource
,java.sql.Wrapper
- All Known Implementing Classes:
AutoDriverDataSource
,DBCPDriverDataSource
,SimpleDriverDataSource
public interface DriverDataSource extends javax.sql.DataSource
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ConnectionDecorator>
createConnectionDecorators()
Provide any built-in decorators; may be null.java.lang.ClassLoader
getClassLoader()
Classloader for loading driver class, etc.java.lang.String
getConnectionDriverName()
Driver class name.java.util.Properties
getConnectionFactoryProperties()
Configuration of datasource properties.java.util.Properties
getConnectionProperties()
Configuration of connection.java.lang.String
getConnectionURL()
JDBC URL.java.lang.String
getConnectionUserName()
JDBC user name.void
initDBDictionary(DBDictionary dict)
Initialize self and dictionary once available.void
setClassLoader(java.lang.ClassLoader classLoader)
JDBC password.void
setConnectionDriverName(java.lang.String connectionDriverName)
Driver class name.void
setConnectionFactoryProperties(java.util.Properties props)
Configuration of datasource properties.void
setConnectionPassword(java.lang.String connectionPassword)
JDBC password.void
setConnectionProperties(java.util.Properties props)
Configuration of connection.void
setConnectionURL(java.lang.String connectionURL)
JDBC URL.void
setConnectionUserName(java.lang.String connectionUserName)
JDBC user name.-
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
-
-
-
Method Detail
-
setConnectionURL
void setConnectionURL(java.lang.String connectionURL)
JDBC URL.
-
getConnectionURL
java.lang.String getConnectionURL()
JDBC URL.
-
setConnectionDriverName
void setConnectionDriverName(java.lang.String connectionDriverName)
Driver class name.
-
getConnectionDriverName
java.lang.String getConnectionDriverName()
Driver class name.
-
setConnectionUserName
void setConnectionUserName(java.lang.String connectionUserName)
JDBC user name.
-
getConnectionUserName
java.lang.String getConnectionUserName()
JDBC user name.
-
setConnectionPassword
void setConnectionPassword(java.lang.String connectionPassword)
JDBC password.
-
setClassLoader
void setClassLoader(java.lang.ClassLoader classLoader)
JDBC password.
-
getClassLoader
java.lang.ClassLoader getClassLoader()
Classloader for loading driver class, etc.
-
setConnectionFactoryProperties
void setConnectionFactoryProperties(java.util.Properties props)
Configuration of datasource properties.
-
getConnectionFactoryProperties
java.util.Properties getConnectionFactoryProperties()
Configuration of datasource properties.
-
setConnectionProperties
void setConnectionProperties(java.util.Properties props)
Configuration of connection.
-
getConnectionProperties
java.util.Properties getConnectionProperties()
Configuration of connection.
-
createConnectionDecorators
java.util.List<ConnectionDecorator> createConnectionDecorators()
Provide any built-in decorators; may be null.
-
initDBDictionary
void initDBDictionary(DBDictionary dict)
Initialize self and dictionary once available.
-
-