|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.sql.duck
datafaucet.system.sql.simplefiltergroup
datafaucet.system.sql.collectionfilter
public class collectionfilter
filters a query using the contents of a structure (usually form input)
| Constructor Summary | |
|---|---|
init(struct content, [string comparison='like'], [string include='and'], [boolean bindFilters='false'], [string delimiters=','], [boolean reverse='false'], [boolean casesensitive='false'], [any table=''], [string like='contains'])
|
|
| Method Summary | |
|---|---|
private any |
getFilterDates(string cname, struct collection)
|
private any |
getFilterNumbers(string cname, struct collection)
|
private struct |
getORMCollection(struct collection, [string comparison='LIKE'])
|
boolean |
hasFilters()
|
private any |
makeDateFilter(string cname, struct dates)
|
private void |
makeFilters()
|
private any |
makeNumericFilter(string cname, struct num)
|
private any |
newFilter(string column, string content, [string comparison='like'], [string delimiters=','], [boolean dynamic='false'], [boolean reverse='false'], [boolean casesensitive='false'])
|
private any |
setRangeFilter(struct collection, string cname, struct filters)
|
private any |
set_content(string propertyname, struct propertyvalue)
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(struct content, [string comparison='like'], [string include='and'], [boolean bindFilters='false'], [string delimiters=','], [boolean reverse='false'], [boolean casesensitive='false'], [any table=''], [string like='contains'])
content - a structure containing search phrases for each key in the structurecomparison - indicates what kind of comparison should be performed against the structure element values - start and end are allowed in addition to standard sql comparison operators to set like conditionsinclude - and / or -- determines whether the filters are cumulative or exclusivebindFilters - indicates if the created group of filters should be returned as a contained group (adds parenthesis around the sql syntax)delimiters - a string of delimiters if the compare attribute is in or not inreverse - indicates that the filter should be reversed, checking for the column value within the content stringcasesensitive - indicates that the content of columns should not be made case-insensitive for databases with case-sensitive collationtable - an object of type statement.cfclike - indicates if like filters should include wild-cards before, after or on both sides of the content string| Method Detail |
|---|
private any getFilterDates(string cname, struct collection)
cnamecollectionprivate any getFilterNumbers(string cname, struct collection)
cnamecollectionprivate struct getORMCollection(struct collection, [string comparison='LIKE'])
collectioncomparisonpublic boolean hasFilters()
hasFilters
in class
simplefiltergroup
private any makeDateFilter(string cname, struct dates)
cnamedatesprivate void makeFilters()
makeFilters
in class
simplefiltergroup
private any makeNumericFilter(string cname, struct num)
cnamenumprivate any newFilter(string column, string content, [string comparison='like'], [string delimiters=','], [boolean dynamic='false'], [boolean reverse='false'], [boolean casesensitive='false'])
column - name of the column to filtercontent - a structure containing search phrases for each key in the structurecomparison - indicates what kind of comparison should be performed against the structure element values - start and end are allowed in addition to standard sql comparison operators to set like conditionsdelimiters - a string of delimiters if the compare attribute is in or not indynamic - indicates that the content argument is a string of arbitrary SQLreverse - indicates that the filter should be reversed, checking for the column value within the content stringcasesensitive - indicates that the content of columns should not be made case-insensitive for databases with case-sensitive collationprivate any setRangeFilter(struct collection, string cname, struct filters)
collectioncnamefiltersprivate any set_content(string propertyname, struct propertyvalue)
propertynamepropertyvalue
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||