DataFaucet 1.0 Beta

datafaucet.system
Class sources

WEB-INF.cftags.component
        extended by datafaucet.system.kernel
            extended by datafaucet.system.sources

public class sources
extends kernel

manages datasources for the current application


Constructor Summary
init(any DataManager, [any sqlAgentLocator='[runtime expression]'], [string datasourceClass='[runtime expression]'])
 
Method Summary
 any delete(string sourceName)
 string describe(string sourceName)
 boolean exists(string sourceName)
 any get([string sourceName='primary'], [string className='[runtime expression]'])
 any getAgentLocator()
          get the SQL Agent locator -- I know the code looks funny -- trust me, it prevents a race condition
 any getDataManager()
private any getDefaults()
 any isModified([numeric before='[runtime expression]'])
 string list()
private any new(string className)
 any reset()
 any set(string sourceName, any datasource)
 
Methods inherited from class datafaucet.system.kernel
arg, componentExists, getDataFaucet, getFaucetObject, getFile, getFileModified, getObject, getPlumbing, getTransaction, getTransactionManager, newTransaction, parseDate, setTransaction
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any DataManager, [any sqlAgentLocator='[runtime expression]'], [string datasourceClass='[runtime expression]'])

Parameters:
DataManager
sqlAgentLocator
datasourceClass
Method Detail

delete

public any delete(string sourceName)

Parameters:
sourceName

describe

public string describe(string sourceName)

Parameters:
sourceName

exists

public boolean exists(string sourceName)

Parameters:
sourceName

get

public any get([string sourceName='primary'], [string className='[runtime expression]'])

Parameters:
sourceName - names the datasource within the current application - not the same as the DSN in ColdFusion Administrator - most applications will only use 'primary'
className

getAgentLocator

public any getAgentLocator()
get the SQL Agent locator -- I know the code looks funny -- trust me, it prevents a race condition


getDataManager

public any getDataManager()


getDefaults

private any getDefaults()


isModified

public any isModified([numeric before='[runtime expression]'])

Parameters:
before

list

public string list()


new

private any new(string className)

Parameters:
className

reset

public any reset()


set

public any set(string sourceName, any datasource)

Parameters:
sourceName
datasource

DataFaucet 1.0 Beta