oracle.apps.fnd.applseed.rt.loader.util
Class SDDataSource
java.lang.Object
oracle.apps.fnd.applseed.rt.loader.util.SDDataSource
- All Implemented Interfaces:
- java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource
public class SDDataSource
- extends java.lang.Object
- implements javax.sql.DataSource
An Implementation of DataSource for use in encapsulating the Connection
Object.
The only use of this currently is to create the SDDataSource object from the
Connection object passed into loader by the Task Director.
This helps in reusing the Connection object.
The reason we had to create this class is DBTransaction class requires
the DataSource object to be used for setting the connection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDDataSource
public SDDataSource(java.sql.Connection c)
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection
in interface javax.sql.DataSource
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
- Specified by:
getConnection
in interface javax.sql.DataSource
getLogWriter
public java.io.PrintWriter getLogWriter()
- Specified by:
getLogWriter
in interface javax.sql.CommonDataSource
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
- Specified by:
setLogWriter
in interface javax.sql.CommonDataSource
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interface javax.sql.CommonDataSource
- Throws:
java.sql.SQLException
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interface javax.sql.CommonDataSource
- Throws:
java.sql.SQLException
isWrapperFor
public boolean isWrapperFor(java.lang.Class iface)
- Specified by:
isWrapperFor
in interface java.sql.Wrapper
unwrap
public java.lang.Object unwrap(java.lang.Class iface)
throws java.sql.SQLException
- Specified by:
unwrap
in interface java.sql.Wrapper
- Throws:
java.sql.SQLException
Copyright © 2011 Oracle. All Rights Reserved.