railo.runtime.services
Class DataSourceImpl

java.lang.Object
  extended by railo.runtime.services.DataSourceImpl
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

public class DataSourceImpl
extends Object
implements DataSource


Constructor Summary
DataSourceImpl(DataSource ds)
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String user, String pass)
           
 DataSourceDef getDataSourceDef()
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 boolean isDisabled()
           
 boolean isWrapperFor(Class<?> iface)
           
 void remove()
           
 void setDataSourceDef(DataSourceDef dsDef)
           
 void setLoginTimeout(int timeout)
           
 void setLogWriter(PrintWriter pw)
           
<T> T
unwrap(Class<T> iface)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceImpl

public DataSourceImpl(DataSource ds)
Method Detail

getConnection

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

getConnection

public Connection getConnection(String user,
                                String pass)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException
See Also:
DataSource.getConnection(java.lang.String, java.lang.String)

getDataSourceDef

public DataSourceDef getDataSourceDef()

getLogWriter

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

getLoginTimeout

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

isDisabled

public boolean isDisabled()

remove

public void remove()
            throws SQLException
Throws:
SQLException

setDataSourceDef

public void setDataSourceDef(DataSourceDef dsDef)

setLogWriter

public void setLogWriter(PrintWriter pw)
                  throws SQLException
Specified by:
setLogWriter in interface CommonDataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int timeout)
                     throws SQLException
Specified by:
setLoginTimeout in interface CommonDataSource
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException


Copyright © 2012 Railo