|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.kernel
datafaucet.system.duck
datafaucet.system.gateway
public class gateway
provides a base class for Active Record objects
| Constructor Summary | |
|---|---|
init([string table=''], [string orderby=''], [string columns='*'], [string prefix=''], [string badchars=''], [string staticColumns=''], [any datasource=''])
|
|
| Method Summary | |
|---|---|
private struct |
applyNamedFilters(any Statement, array filters)
|
private query |
findByDynamic(string MissingMethodName, struct MissingMethodArguments)
|
any |
findByFilters([struct filters='[runtime expression]'], [string sort='sort'], [boolean andOrKeywords='[runtime expression]'])
returns a query filtered and sorted by user-supplied data as a structure |
private struct |
fixModifiedColumns(struct filters)
when column prefixes are occluded, this method adjusts property names back to column names during an insert or update |
private any |
fixSort(string sort)
|
private string |
getAliasColumnList()
|
private any |
getColumnMap()
|
private string |
getColumnNames()
|
private query |
getColumns()
|
private any |
getFilteredStatement(struct filters, [string sort=''], [string include='and'], [boolean andOrKeywords='[runtime expression]'])
|
package string |
getForeignKeyList()
|
private query |
getForeignKeys()
|
private array |
getNamedFilterArray(string MissingMethodName, struct MissingMethodArguments)
|
private any |
getSearchStatement(string searchPhrase, [string sort=''])
returns a 'simple search' filtered by and/or keywords from a single user input, applied across all text-columns in the table |
private any |
getStatement()
|
private string |
getTextColumnList()
|
private query |
getTextColumns()
|
private any |
get_TextColumns()
|
private string |
get_columns()
|
any |
onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
Handles missing method exceptions. |
any |
search(string searchPhrase, [string sort=''])
returns a 'simple search' filtered by and/or keywords from a single user input, applied across all text-columns in the table |
| Methods inherited from class datafaucet.system.duck |
|---|
addObserver, getObservers, getProperties, getProperty, getPropertylist, getValue, identifyAccessorOrMutator, observe, raiseMissingMethodException, reset, setProperties, setProperty, setValue
|
| 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 |
|---|
public init([string table=''], [string orderby=''], [string columns='*'], [string prefix=''], [string badchars=''], [string staticColumns=''], [any datasource=''])
table - a base table from which data should be selectedorderby - a default order by which results should be sortedcolumns - a list of columns to return in selected queriesprefix - a string to remove from the beginning of any column names - only applied to columns returned by the * wildcardbadchars - undesirable characters to remove from names - only applied to columns returned by the * wildcardstaticColumns - a comma delimited list of columns for which the prefix is not removed, i.e. productid,productnamedatasource| Method Detail |
|---|
private struct applyNamedFilters(any Statement, array filters)
Statementfiltersprivate query findByDynamic(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 findByFilters([struct filters='[runtime expression]'], [string sort='sort'], [boolean andOrKeywords='[runtime expression]'])
filterssortandOrKeywordsprivate struct fixModifiedColumns(struct filters)
filtersprivate any fixSort(string sort)
sortprivate string getAliasColumnList()
private any getColumnMap()
private string getColumnNames()
private query getColumns()
private any getFilteredStatement(struct filters, [string sort=''], [string include='and'], [boolean andOrKeywords='[runtime expression]'])
filterssortincludeandOrKeywordspackage string getForeignKeyList()
private query getForeignKeys()
private array getNamedFilterArray(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.private any getSearchStatement(string searchPhrase, [string sort=''])
searchPhrasesortprivate any getStatement()
private string getTextColumnList()
private query getTextColumns()
private any get_TextColumns()
private string get_columns()
public 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.public any search(string searchPhrase, [string sort=''])
searchPhrasesort
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||