net.sf.farrago.session
Class FarragoSessionDataSource

java.lang.Object
  extended by org.eigenbase.jdbc4.Unwrappable
      extended by org.eigenbase.util.JdbcDataSource
          extended by net.sf.farrago.session.FarragoSessionDataSource
All Implemented Interfaces:
DataSource

public class FarragoSessionDataSource
extends JdbcDataSource

FarragoSessionDataSource implements DataSource by providing a loopback Connection into a session; this can be used for execution of reentrant SQL.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionDataSource.java#6 $
Author:
John V. Sichi

Field Summary
private  FarragoSessionConnectionSource connectionSource
           
 
Constructor Summary
FarragoSessionDataSource(FarragoSession session)
           
 
Method Summary
 Connection getConnection()
           
 
Methods inherited from class org.eigenbase.util.JdbcDataSource
getConnection, getLoginTimeout, getLogWriter, getUrl, setLoginTimeout, setLogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionSource

private final FarragoSessionConnectionSource connectionSource
Constructor Detail

FarragoSessionDataSource

public FarragoSessionDataSource(FarragoSession session)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DataSource
Overrides:
getConnection in class JdbcDataSource
Throws:
SQLException