org.apache.cocoon.databases.ibatis
Class ExcaliburDataSourceFactory.DataSourceWrapper

java.lang.Object
  extended byorg.apache.cocoon.databases.ibatis.ExcaliburDataSourceFactory.DataSourceWrapper
All Implemented Interfaces:
DataSource
Enclosing class:
ExcaliburDataSourceFactory

protected static final class ExcaliburDataSourceFactory.DataSourceWrapper
extends Object
implements DataSource


Field Summary
protected  DataSourceComponent datasource
           
protected  int timeout
           
protected  PrintWriter writer
           
 
Constructor Summary
ExcaliburDataSourceFactory.DataSourceWrapper(DataSourceComponent d)
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 boolean isWrapperFor(Class iface)
          Required by JDK1.6.
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 Object unwrap(Class iface)
          Required by JDK1.6.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datasource

protected final DataSourceComponent datasource

writer

protected PrintWriter writer

timeout

protected int timeout
Constructor Detail

ExcaliburDataSourceFactory.DataSourceWrapper

public ExcaliburDataSourceFactory.DataSourceWrapper(DataSourceComponent d)
Method Detail

getConnection

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

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Specified by:
getLoginTimeout in interface DataSource
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Specified by:
getLogWriter in interface DataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Specified by:
setLoginTimeout in interface DataSource
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Specified by:
setLogWriter in interface DataSource
Throws:
SQLException

unwrap

public Object unwrap(Class iface)
              throws SQLException
Required by JDK1.6.

Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class iface)
                     throws SQLException
Required by JDK1.6.

Throws:
SQLException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.