railo.runtime.services
Class DataSourceImpl
java.lang.Object
railo.runtime.services.DataSourceImpl
- All Implemented Interfaces:
- Wrapper, CommonDataSource, DataSource
public class DataSourceImpl
- extends Object
- implements DataSource
DataSourceImpl
public DataSourceImpl(DataSource ds)
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String user,
String pass)
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
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
getParentLogger
public Logger getParentLogger()
throws SQLFeatureNotSupportedException
- Throws:
SQLFeatureNotSupportedException
Copyright © 2012 Railo