|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.sql.duck
datafaucet.system.sql.simplefiltergroup
datafaucet.system.sql.filtergroup
public class filtergroup
provides a means of manually attaching grouped filters to statement object - extended by insert, update and select statements
| Constructor Summary | |
|---|---|
init(any source, [string include='[runtime expression]'], [boolean bindFilters='[runtime expression]'])
|
|
| Method Summary | |
|---|---|
private any |
addLiquidFilterGroup(string MissingMethodName, struct MissingMethodArguments)
|
private any |
addLiquidFilters(array name)
|
any |
andOrCollectionFilter(struct content)
|
any |
andOrFilter(string columns, string searchphrase)
|
any |
caseSensitiveFilter(string column, string content, [string comparison], [string include], [string delimiters])
|
any |
collectionFilter(struct content, [string comparison='LIKE'], [string include='AND'], [boolean bindFilters='false'], [string delimiters=','], [boolean dynamic='false'], [boolean reverse='false'], [boolean casesensitive='false'], [string like='contains'])
|
any |
dateFilter(string column, [string after=''], [string before='1'], [boolean bindFilters='true'])
|
any |
filter(string column, any content, [string comparison='='], [string include], [string delimiters], [boolean casesensitive='false'])
|
any |
filterGroup([string include='[runtime expression]'], [boolean bindFilters='true'])
|
any |
filterLanguage(string column, string locales)
|
any |
filterLocale(string column, string locales)
|
private string |
getDefaultLocale()
|
private any |
getLiquidNameArray(string name)
|
private array |
getLocaleArray([string locale='[runtime expression]'])
|
any |
getNewFilter([string column=''], [string classPath='filter'])
|
any |
listFilter(string column, string content, [boolean inlist='true'], [string delimiters], [string include], [boolean casesensitive='false'])
|
any |
nullFilter(string column, [boolean isNull='true'], [string include=''])
|
any |
numericFilter(string column, [string min=''], [string max=''], [boolean bindFilters='true'])
|
any |
onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
Handles missing method exceptions. |
any |
reverseFilter(string column, string content, [string include], [boolean casesensitive='false'], [string delimiters=''])
|
any |
setFirstFilter(any filter)
|
any |
sqlFilter(string column, any content, [string comparison], [string include], [boolean reverse='false'], [boolean casesensitive='false'])
|
any |
timeSpanFilter(string startcolumn, string endcolumn, string starttime, string endtime, [string overlap='true'], [boolean bindFilters='true'])
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any source, [string include='[runtime expression]'], [boolean bindFilters='[runtime expression]'])
sourceincludebindFilters| Method Detail |
|---|
private any addLiquidFilterGroup(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 addLiquidFilters(array name)
namepublic any andOrCollectionFilter(struct content)
content - a structure containing search phrases for each key in the structurepublic any andOrFilter(string columns, string searchphrase)
columns - a comma delimited list of columns to searchsearchphrase - a search phrase containing and-or keywords in the current users preferred language or in english if localized keywords are unavailablepublic any caseSensitiveFilter(string column, string content, [string comparison], [string include], [string delimiters])
column - the name of a column to filter results oncontent - the content to compare against the data stored in the tablecomparison - indicates how the content of the current filter should be
compared against the database (<|=|>|like|in|not in|null|not null)
- defaults to 'like' for varchar columns or = for all other data typesinclude - and / or -- determines whether the filters are cumulative or exclusivedelimiters - a list of delimiters if the compare attribute is in or not inpublic any collectionFilter(struct content, [string comparison='LIKE'], [string include='AND'], [boolean bindFilters='false'], [string delimiters=','], [boolean dynamic='false'], [boolean reverse='false'], [boolean casesensitive='false'], [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 valuesinclude - 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 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 collationlike - indicates if like filters should include wild-cards before, after or on both sides of the content stringpublic any dateFilter(string column, [string after=''], [string before='1'], [boolean bindFilters='true'])
column - the name of a column to filter results onafter - the earliest possible date to return from the querybefore - the latest possible date to return from the query - a number may be substituted to indicate a specific number of daysbindFilters - indicates if the created filters should be groupedpublic any filter(string column, any content, [string comparison='='], [string include], [string delimiters], [boolean casesensitive='false'])
column - the name of a column to filter results oncontent - the content to compare against the data stored in the tablecomparison - indicates how the content of the current filter should be
compared against the database (<|=|>|like|in|not in|null|not null)
- defaults to 'like' for varchar columns or = for all other data typesinclude - and / or -- determines whether the filters are cumulative or exclusivedelimiters - a list of delimiters if the compare attribute is in or not incasesensitive - indicates that the content of columns should not be made case-insensitive for databases with case-sensitive collationpublic any filterGroup([string include='[runtime expression]'], [boolean bindFilters='true'])
includebindFilterspublic any filterLanguage(string column, string locales)
column - the name of a column containing locale stringslocales - a comma-delimited list of languages to match -- will include content matched to all locales in the specified languagespublic any filterLocale(string column, string locales)
column - the name of a column containing locale stringslocales - a comma-delimited list of locales to match -- will include content matched to all parent locales, i.e. en_US will also include enprivate string getDefaultLocale()
private any getLiquidNameArray(string name)
name - The name of the missing method.private array getLocaleArray([string locale='[runtime expression]'])
localepublic any getNewFilter([string column=''], [string classPath='filter'])
columnclassPathpublic any listFilter(string column, string content, [boolean inlist='true'], [string delimiters], [string include], [boolean casesensitive='false'])
column - the name of a column to filter results oncontent - the content to compare against the data stored in the tableinlist - indicates how the content of the current filter should be compared against the databasedelimiters - a list of delimiters if the compare attribute is in or not ininclude - and / or -- determines whether the filters are cumulative or exclusivecasesensitive - indicates that the content of columns should not be made case-insensitive for databases with case-sensitive collationpublic any nullFilter(string column, [boolean isNull='true'], [string include=''])
column - the name of a column to filter results onisNull - indicates if the indicated column should be null or not nullinclude - and / or -- determines whether the filters are cumulative or exclusivepublic any numericFilter(string column, [string min=''], [string max=''], [boolean bindFilters='true'])
column - the name of a column to filter results onmin - the earliest possible date to return from the querymax - the latest possible date to return from the query - a number may be substituted to indicate a specific number of daysbindFilters - indicates if the created date filters should be groupedpublic 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 reverseFilter(string column, string content, [string include], [boolean casesensitive='false'], [string delimiters=''])
column - the name of a column to filter results oncontent - the content to compare against the data stored in the tableinclude - and / or -- determines whether the filters are cumulative or exclusivecasesensitive - indicates that the content of columns should not be made case-insensitive for databases with case-sensitive collationdelimiters - allows the reverse filter to find an item in a listpublic any setFirstFilter(any filter)
filterpublic any sqlFilter(string column, any content, [string comparison], [string include], [boolean reverse='false'], [boolean casesensitive='false'])
column - the name of a column to filter results oncontent - a string of raw sql syntax (as an example this may include a column name, i.e. where col1 > col2) or another select object to create a subquerycomparison - indicates how the content of the current filter should be
compared against the database (<|=|>|like|in|not in|null|not null)
- defaults to 'like' for varchar columns or = for all other data typesinclude - and / or -- determines whether the filters are cumulative or exclusivereverse - 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 collationpublic any timeSpanFilter(string startcolumn, string endcolumn, string starttime, string endtime, [string overlap='true'], [boolean bindFilters='true'])
startcolumn - identifies a column representing the beginning of a span of timeendcolumn - identifies a column representing the end of a span of timestarttime - the beginning of a time-span which should or should not overlap the span indicated in the columnsendtime - the end of a time-span which should or should not overlap the span indicated in the columnsoverlap - indicates if the specified time-spans should overlap or should not overlapbindFilters - indicates if the created filters should be grouped
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||