|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.kernel
datafaucet.system.duck
datafaucet.system.datasource
public class datasource
This component encapsulates common functionality for a given datasource
| Constructor Summary | |
|---|---|
init([string datasource=''], [string server=''], [string description=''], [string catalog=''], [string schema=''], [string usr=''], [string pwd=''], [string version=''])
|
|
| Method Summary | |
|---|---|
string |
ParseDDL(any xml, [boolean execute='true'])
|
any |
delete(string table, any id, [string column=''])
|
private any |
fetchServerType()
|
any |
getActiveRecord([string table=''], [string objectid=''], [string className='activerecord'], [struct columns='[runtime expression]'])
|
private any |
getAgentLocator()
|
any |
getCacheManager()
|
query |
getCatalogs()
|
string |
getColumnList(string table, [string prefix='alias'], [string alias=''], [string omit=''])
returns a comma delimited list of qualified column names in a specified table with optional additional formatting |
query |
getColumns(string table)
gets columns for a specified table |
private any |
getDataManager()
|
string |
getDefaultCatalog()
|
any |
getDefaultLocalization()
|
any |
getDelete(string table, any id, [string column=''])
|
struct |
getEntity(string entity)
|
query |
getExportedKeys(string table)
gets a list of tables into which the primary keys of the specified table are imported |
private any |
getForeignKey(string table, string source, string column, [boolean returnprimary='true'])
|
struct |
getForeignKeys(string table)
gets imported foreign keys for a specified table as a structure |
any |
getGateway([string table=''], [string orderby=''], [string columns='*'], [string className='gateway'])
|
query |
getImportedKeys(string table)
returns primary keys that have been imported into a specified table |
any |
getInsert(string table, [struct insertData='[runtime expression]'])
|
any |
getLocalization()
|
private any |
getMissingMethodParser()
|
string |
getNextFromSequence(string sequence)
|
query |
getParameters(string procedure)
returns parameters for a specified stored procedure |
private any |
getPrimaryKeyColumn(string table)
|
query |
getPrimaryKeys(string table)
gets primary key constraints for a specified table |
any |
getProcedure()
returns an instantiated sql.procedure object |
struct |
getReferenceColumns(string targetTable, string sourceTable, [string column=''], [string references=''])
returns default column names for a join clause based on foreign key constraints or conventions if no constraints are available |
private struct |
getReferenceKeys(string targetTable, string sourceTable, [string column=''], [string references=''])
returns default column names for a join clause based on foreign key constraints or conventions if no constraints are available |
any |
getSQLAgent()
returns an instantiated SQL Agent CFC which can execute statements associated with this datasource |
any |
getSchemaExport([string exportclass='schemaexport'])
|
query |
getSchemas()
|
any |
getSelect([string columns='*'], string table, [string orderby=''], [string groupby=''], [string having=''], [numeric maxrows='-1'])
|
private any |
getSources()
|
any |
getStatement(string type='select')
returns an instantiated sql.statement object of a specified type (select|insert|update|delete) |
query |
getStoredProcedures([string procNames='%'])
lists all stored procedures in the catalog |
query |
getTables([string tableNames='%'], [string types='table,view'])
gets a list of views and/or tables in the catalog |
any |
getTransaction([string className='transaction'])
|
any |
getUpdate(string table, [struct insertData='[runtime expression]'], [any column=''])
|
any |
getValidator()
|
boolean |
hasColumn(string entity, string column)
|
boolean |
hasConstraint(string entity, string constraint)
|
boolean |
hasProcedure(string entity)
|
boolean |
hasSequence(string entity)
|
boolean |
hasTable(string entity)
|
boolean |
hasTableOrView(string entity)
|
boolean |
hasTrigger(string entity, string trigger)
|
boolean |
hasView(string entity)
|
any |
isLoaded()
|
string |
jdbcType(string type)
|
any |
metadata()
executes the JDBC metadata object for this datasource |
string |
newID([any ActiveRecord=''])
|
any |
onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
Handles missing method exceptions. |
private any |
parseDynamicSelect(string MissingMethodName, struct MissingMethodArguments)
|
any |
purge()
purges cached queries for this database - does not affect cached metadata |
private any |
raiseSloppyException(string type, string table)
|
any |
reset()
purges cached metadata and queries for this database |
query |
select([string columns='*'], string table, [struct filters='[runtime expression]'], [string orderby=''], [numeric maxrows='-1'], [boolean distinct='false'])
|
any |
setCacheManager(any CacheManager)
|
any |
setLocalization(any localization)
|
any |
setSources(any sources)
|
private any |
sqlInsert(string table, struct insertData)
|
struct |
update(string table, struct insertData, [any column=''])
|
| Methods inherited from class datafaucet.system.duck |
|---|
addObserver, getObservers, getProperties, getProperty, getPropertylist, getValue, identifyAccessorOrMutator, observe, raiseMissingMethodException, setProperties, setProperty, setValue
|
| Methods inherited from class datafaucet.system.kernel |
|---|
arg, componentExists, getDataFaucet, getFaucetObject, getFile, getFileModified, getObject, getPlumbing, getTransactionManager, newTransaction, parseDate, setTransaction
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init([string datasource=''], [string server=''], [string description=''], [string catalog=''], [string schema=''], [string usr=''], [string pwd=''], [string version=''])
datasource - the dsn in the ColdFusion administrator for use in cfquery tagsserver - the tokenized name of the database software used for this datasourcedescription - a human-readable description of the specified datasourcecatalog - indicates the default catalog for this datasource - overrides the default catalog in the ColdFusion Administratorschema - indicates the default schema for this datasourceusr - the username to associate with this datasourcepwd - the password associated with the specified usernameversion - the version associated with the specified server| Method Detail |
|---|
public string ParseDDL(any xml, [boolean execute='true'])
xmlexecutepublic any delete(string table, any id, [string column=''])
tableid - string or structcolumn - defaults to primary keyprivate any fetchServerType()
public any getActiveRecord([string table=''], [string objectid=''], [string className='activerecord'], [struct columns='[runtime expression]'])
tableobjectidclassNamecolumnsprivate any getAgentLocator()
public any getCacheManager()
public query getCatalogs()
public string getColumnList(string table, [string prefix='alias'], [string alias=''], [string omit=''])
table - the name of a table from which to fetch column namesprefix - indicates what portion of the table name should be included in the identifier for each columnalias - a value to prepend to the name of each columnomit - a list of columns to exclude from the returned listpublic query getColumns(string table)
table - the name of the table to return column data fromprivate any getDataManager()
public string getDefaultCatalog()
public any getDefaultLocalization()
public any getDelete(string table, any id, [string column=''])
tableid - string or structcolumn - defaults to primary keypublic struct getEntity(string entity)
entitypublic query getExportedKeys(string table)
table - the name of the table to return key data fromprivate any getForeignKey(string table, string source, string column, [boolean returnprimary='true'])
tablesourcecolumnreturnprimarypublic struct getForeignKeys(string table)
table - the name of the table to return key data frompublic any getGateway([string table=''], [string orderby=''], [string columns='*'], [string className='gateway'])
tableorderbycolumnsclassNamepublic query getImportedKeys(string table)
table - the name of the table to return key data frompublic any getInsert(string table, [struct insertData='[runtime expression]'])
tableinsertDatapublic any getLocalization()
private any getMissingMethodParser()
public string getNextFromSequence(string sequence)
sequencepublic query getParameters(string procedure)
procedure - the name of the procedure to return parameter data fromprivate any getPrimaryKeyColumn(string table)
tablepublic query getPrimaryKeys(string table)
table - the name of the table to return key data frompublic any getProcedure()
public struct getReferenceColumns(string targetTable, string sourceTable, [string column=''], [string references=''])
targetTablesourceTablecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedprivate struct getReferenceKeys(string targetTable, string sourceTable, [string column=''], [string references=''])
targetTablesourceTablecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedpublic any getSQLAgent()
public any getSchemaExport([string exportclass='schemaexport'])
exportclasspublic query getSchemas()
public any getSelect([string columns='*'], string table, [string orderby=''], [string groupby=''], [string having=''], [numeric maxrows='-1'])
columnstableorderbygroupbyhavingmaxrowsprivate any getSources()
public any getStatement(string type='select')
typepublic query getStoredProcedures([string procNames='%'])
procNames - a pattern to match for returned procedure namespublic query getTables([string tableNames='%'], [string types='table,view'])
tableNames - a pattern to match for returned table namestypes - a comma delimited list of the table types to returnpublic any getTransaction([string className='transaction'])
getTransaction
in class
kernel
classNamepublic any getUpdate(string table, [struct insertData='[runtime expression]'], [any column=''])
tableinsertDatacolumn - string or structpublic any getValidator()
public boolean hasColumn(string entity, string column)
entitycolumnpublic boolean hasConstraint(string entity, string constraint)
entityconstraintpublic boolean hasProcedure(string entity)
entitypublic boolean hasSequence(string entity)
entitypublic boolean hasTable(string entity)
entitypublic boolean hasTableOrView(string entity)
entitypublic boolean hasTrigger(string entity, string trigger)
entitytriggerpublic boolean hasView(string entity)
entitypublic any isLoaded()
public string jdbcType(string type)
typepublic any metadata()
public string newID([any ActiveRecord=''])
ActiveRecordpublic any onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
onMissingMethod
in class
duck
MissingMethodName - The name of the missing method.MissingMethodArguments - The arguments that were passed to the missing method. This might be a named argument set or a numerically indexed set.private any parseDynamicSelect(string MissingMethodName, struct MissingMethodArguments)
MissingMethodName - The name of the missing method.MissingMethodArguments - The arguments that were passed to the missing method. This might be a named argument set or a numerically indexed set.public any purge()
private any raiseSloppyException(string type, string table)
typetablepublic any reset()
reset
in class
duck
public query select([string columns='*'], string table, [struct filters='[runtime expression]'], [string orderby=''], [numeric maxrows='-1'], [boolean distinct='false'])
columnstablefiltersorderbymaxrowsdistinctpublic any setCacheManager(any CacheManager)
CacheManagerpublic any setLocalization(any localization)
localizationpublic any setSources(any sources)
sourcesprivate any sqlInsert(string table, struct insertData)
tableinsertDatapublic struct update(string table, struct insertData, [any column=''])
tableinsertDatacolumn - string or struct
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||