coldfusion.sql
Interface DataSource

All Superinterfaces:
CommonDataSource, DataSource, Wrapper

public interface DataSource
extends DataSource


Method Summary
 Connection getConnection()
           
 Connection getConnection(String user, String pass)
           
 DataSourceDef getDataSourceDef()
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 boolean isDisabled()
           
 void remove()
           
 void setDataSourceDef(DataSourceDef dsDef)
           
 void setLoginTimeout(int timeout)
           
 void setLogWriter(PrintWriter pw)
           
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

remove

void remove()
            throws SQLException
Throws:
SQLException

getConnection

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

getConnection

Connection getConnection(String user,
                         String pass)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

setDataSourceDef

void setDataSourceDef(DataSourceDef dsDef)

getDataSourceDef

DataSourceDef getDataSourceDef()

getLogWriter

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

getLoginTimeout

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

setLogWriter

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

setLoginTimeout

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

isDisabled

boolean isDisabled()


Copyright © 2012 Railo