public class SelectFilter extends SelectBase
If passed 0 filters that will replace the select condition with true so that all rows are returned.
Modifier and Type | Class and Description |
---|---|
static class |
SelectFilter.Filter
An individual filter in the select.
|
SORT_ASCENDING, SORT_DESCENDING, SORT_NO_OVERRIDE
Constructor and Description |
---|
SelectFilter(int sort)
Create the object.
|
SelectFilter(int sort,
java.lang.String varName,
SelectFilter.Filter[] filters,
boolean andFilters)
Create a select with 2 filters.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getFilters()
Get the filters.
|
int |
getNumFilters()
Get the number of filters.
|
static java.lang.String |
getOpCodeText(int opCode)
Get the text string to match the opcode.
|
static java.lang.String[] |
getOpCodeText(int[] opCodes)
Get the text strings to match the opcode list.
|
boolean |
isAndFilters()
true if filters are to be and-ed, false if to be or-ed.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getGlobalMetaIdentifier, getSort, getVarName, isApplyGlobally, setGlobal, setSort
public SelectFilter(int sort)
sort
- Set the sort order if we override it.public SelectFilter(int sort, java.lang.String varName, SelectFilter.Filter[] filters, boolean andFilters)
sort
- Set the sort order if we override it.varName
- The name of the var this filter is for. If you are using aliases (SQL), this is the actual
table.column, NOT the alias.filters
- The filter(s) to select on.andFilters
- true if filters are to be and-ed, false if to be or-ed.public boolean isAndFilters()
public int getNumFilters()
public java.util.List getFilters()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String[] getOpCodeText(int[] opCodes)
opCodes
- Op codes we need strings for.public static java.lang.String getOpCodeText(int opCode)
opCode
- Op codes we need string for.Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software