org.apache.openjpa.jdbc.schema
Class SimpleDriverDataSource
java.lang.Object
org.apache.openjpa.jdbc.schema.SimpleDriverDataSource
- All Implemented Interfaces:
- javax.sql.DataSource, DriverDataSource, org.apache.openjpa.lib.conf.Configurable
public class SimpleDriverDataSource
- extends java.lang.Object
- implements DriverDataSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDriverDataSource
public SimpleDriverDataSource()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.util.Properties props)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getLoginTimeout
public int getLoginTimeout()
- Specified by:
getLoginTimeout
in interface javax.sql.DataSource
setLoginTimeout
public void setLoginTimeout(int seconds)
- Specified by:
setLoginTimeout
in interface javax.sql.DataSource
getLogWriter
public java.io.PrintWriter getLogWriter()
- Specified by:
getLogWriter
in interface javax.sql.DataSource
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
- Specified by:
setLogWriter
in interface javax.sql.DataSource
startConfiguration
public void startConfiguration()
- Specified by:
startConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
endConfiguration
public void endConfiguration()
- Specified by:
endConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
setConfiguration
public void setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
- Specified by:
setConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
initDBDictionary
public void initDBDictionary(DBDictionary dict)
- Specified by:
initDBDictionary
in interface DriverDataSource
setConnectionURL
public void setConnectionURL(java.lang.String connectionURL)
- Specified by:
setConnectionURL
in interface DriverDataSource
getConnectionURL
public java.lang.String getConnectionURL()
- Specified by:
getConnectionURL
in interface DriverDataSource
setConnectionUserName
public void setConnectionUserName(java.lang.String connectionUserName)
- Specified by:
setConnectionUserName
in interface DriverDataSource
getConnectionUserName
public java.lang.String getConnectionUserName()
- Specified by:
getConnectionUserName
in interface DriverDataSource
setConnectionPassword
public void setConnectionPassword(java.lang.String connectionPassword)
- Specified by:
setConnectionPassword
in interface DriverDataSource
setConnectionProperties
public void setConnectionProperties(java.util.Properties props)
- Specified by:
setConnectionProperties
in interface DriverDataSource
getConnectionProperties
public java.util.Properties getConnectionProperties()
- Specified by:
getConnectionProperties
in interface DriverDataSource
setConnectionFactoryProperties
public void setConnectionFactoryProperties(java.util.Properties props)
- Specified by:
setConnectionFactoryProperties
in interface DriverDataSource
getConnectionFactoryProperties
public java.util.Properties getConnectionFactoryProperties()
- Specified by:
getConnectionFactoryProperties
in interface DriverDataSource
createConnectionDecorators
public java.util.List createConnectionDecorators()
- Specified by:
createConnectionDecorators
in interface DriverDataSource
setClassLoader
public void setClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setClassLoader
in interface DriverDataSource
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface DriverDataSource
setConnectionDriverName
public void setConnectionDriverName(java.lang.String connectionDriverName)
- Specified by:
setConnectionDriverName
in interface DriverDataSource
getConnectionDriverName
public java.lang.String getConnectionDriverName()
- Specified by:
getConnectionDriverName
in interface DriverDataSource
Copyright © 2006 Apache Software Foundation. All Rights Reserved.