|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.schema.SimpleDriverDataSource
public class SimpleDriverDataSource
Non-pooling driver data source.
| Constructor Summary | |
|---|---|
SimpleDriverDataSource()
|
|
| Method Summary | |
|---|---|
List |
createConnectionDecorators()
Provide any built-in decorators; may be null. |
ClassLoader |
getClassLoader()
Classloader for loading driver class, etc. |
Connection |
getConnection()
|
Connection |
getConnection(Properties props)
|
Connection |
getConnection(String username,
String password)
|
String |
getConnectionDriverName()
Driver class name. |
Properties |
getConnectionFactoryProperties()
Configuration of datasource properties. |
Properties |
getConnectionProperties()
Configuration of connection. |
String |
getConnectionURL()
JDBC URL. |
String |
getConnectionUserName()
JDBC user name. |
int |
getLoginTimeout()
|
PrintWriter |
getLogWriter()
|
void |
initDBDictionary(DBDictionary dict)
Initialize self and dictionary once available. |
void |
setClassLoader(ClassLoader classLoader)
JDBC password. |
void |
setConnectionDriverName(String connectionDriverName)
Driver class name. |
void |
setConnectionFactoryProperties(Properties props)
Configuration of datasource properties. |
void |
setConnectionPassword(String connectionPassword)
JDBC password. |
void |
setConnectionProperties(Properties props)
Configuration of connection. |
void |
setConnectionURL(String connectionURL)
JDBC URL. |
void |
setConnectionUserName(String connectionUserName)
JDBC user name. |
void |
setLoginTimeout(int seconds)
|
void |
setLogWriter(PrintWriter out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDriverDataSource()
| Method Detail |
|---|
public Connection getConnection()
throws SQLException
getConnection in interface DataSourceSQLException
public Connection getConnection(String username,
String password)
throws SQLException
getConnection in interface DataSourceSQLException
public Connection getConnection(Properties props)
throws SQLException
SQLExceptionpublic int getLoginTimeout()
getLoginTimeout in interface DataSourcepublic void setLoginTimeout(int seconds)
setLoginTimeout in interface DataSourcepublic PrintWriter getLogWriter()
getLogWriter in interface DataSourcepublic void setLogWriter(PrintWriter out)
setLogWriter in interface DataSourcepublic void initDBDictionary(DBDictionary dict)
DriverDataSource
initDBDictionary in interface DriverDataSourcepublic void setConnectionURL(String connectionURL)
DriverDataSource
setConnectionURL in interface DriverDataSourcepublic String getConnectionURL()
DriverDataSource
getConnectionURL in interface DriverDataSourcepublic void setConnectionUserName(String connectionUserName)
DriverDataSource
setConnectionUserName in interface DriverDataSourcepublic String getConnectionUserName()
DriverDataSource
getConnectionUserName in interface DriverDataSourcepublic void setConnectionPassword(String connectionPassword)
DriverDataSource
setConnectionPassword in interface DriverDataSourcepublic void setConnectionProperties(Properties props)
DriverDataSource
setConnectionProperties in interface DriverDataSourcepublic Properties getConnectionProperties()
DriverDataSource
getConnectionProperties in interface DriverDataSourcepublic void setConnectionFactoryProperties(Properties props)
DriverDataSource
setConnectionFactoryProperties in interface DriverDataSourcepublic Properties getConnectionFactoryProperties()
DriverDataSource
getConnectionFactoryProperties in interface DriverDataSourcepublic List createConnectionDecorators()
DriverDataSource
createConnectionDecorators in interface DriverDataSourcepublic void setClassLoader(ClassLoader classLoader)
DriverDataSource
setClassLoader in interface DriverDataSourcepublic ClassLoader getClassLoader()
DriverDataSource
getClassLoader in interface DriverDataSourcepublic void setConnectionDriverName(String connectionDriverName)
DriverDataSource
setConnectionDriverName in interface DriverDataSourcepublic String getConnectionDriverName()
DriverDataSource
getConnectionDriverName in interface DriverDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||