|
|||||||||
| 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 abstract class SimpleDriverDataSource
Non-pooling driver data source.
| Field Summary | |
|---|---|
protected static Localizer |
_eloc
|
protected static Localizer |
_loc
|
| Constructor Summary | |
|---|---|
SimpleDriverDataSource()
|
|
| Method Summary | |
|---|---|
java.util.List |
createConnectionDecorators()
Provide any built-in decorators; may be null. |
java.lang.ClassLoader |
getClassLoader()
Classloader for loading driver class, etc. |
java.sql.Connection |
getConnection()
|
java.sql.Connection |
getConnection(java.util.Properties props)
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
|
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. |
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
void |
initDBDictionary(DBDictionary dict)
Initialize self and dictionary once available. |
boolean |
isWrapperFor(java.lang.Class iface)
|
static SimpleDriverDataSource |
newInstance()
|
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. |
void |
setLoginTimeout(int seconds)
|
void |
setLogWriter(java.io.PrintWriter out)
|
java.lang.Object |
unwrap(java.lang.Class iface)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Localizer _loc
protected static Localizer _eloc
| Constructor Detail |
|---|
public SimpleDriverDataSource()
| Method Detail |
|---|
public static SimpleDriverDataSource newInstance()
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.util.Properties props)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getLoginTimeout()
getLoginTimeout in interface javax.sql.CommonDataSourcepublic void setLoginTimeout(int seconds)
setLoginTimeout in interface javax.sql.CommonDataSourcepublic java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.sql.CommonDataSourcepublic void setLogWriter(java.io.PrintWriter out)
setLogWriter in interface javax.sql.CommonDataSourcepublic void initDBDictionary(DBDictionary dict)
DriverDataSource
initDBDictionary in interface DriverDataSourcepublic void setConnectionURL(java.lang.String connectionURL)
DriverDataSource
setConnectionURL in interface DriverDataSourcepublic java.lang.String getConnectionURL()
DriverDataSource
getConnectionURL in interface DriverDataSourcepublic void setConnectionUserName(java.lang.String connectionUserName)
DriverDataSource
setConnectionUserName in interface DriverDataSourcepublic java.lang.String getConnectionUserName()
DriverDataSource
getConnectionUserName in interface DriverDataSourcepublic void setConnectionPassword(java.lang.String connectionPassword)
DriverDataSource
setConnectionPassword in interface DriverDataSourcepublic void setConnectionProperties(java.util.Properties props)
DriverDataSource
setConnectionProperties in interface DriverDataSourcepublic java.util.Properties getConnectionProperties()
DriverDataSource
getConnectionProperties in interface DriverDataSourcepublic void setConnectionFactoryProperties(java.util.Properties props)
DriverDataSource
setConnectionFactoryProperties in interface DriverDataSourcepublic java.util.Properties getConnectionFactoryProperties()
DriverDataSource
getConnectionFactoryProperties in interface DriverDataSourcepublic java.util.List createConnectionDecorators()
DriverDataSource
createConnectionDecorators in interface DriverDataSourcepublic void setClassLoader(java.lang.ClassLoader classLoader)
DriverDataSource
setClassLoader in interface DriverDataSourcepublic java.lang.ClassLoader getClassLoader()
DriverDataSource
getClassLoader in interface DriverDataSourcepublic void setConnectionDriverName(java.lang.String connectionDriverName)
DriverDataSource
setConnectionDriverName in interface DriverDataSourcepublic java.lang.String getConnectionDriverName()
DriverDataSource
getConnectionDriverName in interface DriverDataSourcepublic boolean isWrapperFor(java.lang.Class iface)
isWrapperFor in interface java.sql.Wrapperpublic java.lang.Object unwrap(java.lang.Class iface)
unwrap in interface java.sql.Wrapper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||