public class BusinessDataFilter extends AbstractBusinessBean
Modifier and Type | Field and Description |
---|---|
static String |
ASC |
static String |
CONDITION_AND |
static String |
CONDITION_OR |
static String |
DESC |
static char |
WILDCARD_ALL |
static char |
WILDCARD_ONE |
Constructor and Description |
---|
BusinessDataFilter()
Default constructor.
|
BusinessDataFilter(String defaultConditionOperation)
This constructor allows to specify the default operation to concatenate
conditions (logic "AND" or "OR" operation).
|
Modifier and Type | Method and Description |
---|---|
void |
addEqualsOrGreaterThanCondition(String column,
Object value)
This methods allows to add "EqualsOrGreaterThan" conditions: column >=
value
|
void |
addEqualsOrGreaterThanCondition(String column,
Object value,
String booleanCondition)
This methods allows to add "EqualsOrGreaterThan" conditions: column >=
value specifying the logic operator ("AND" or "OR") to use to add this
condition to the filter
|
void |
addEqualsOrLessThanCondition(String column,
Object value)
This methods allows to add "EqualsOrLessThan" conditions: column <= value
|
void |
addEqualsOrLessThanCondition(String column,
Object value,
String booleanCondition)
This methods allows to add "EqualsOrLessThan" conditions: column <= value
|
void |
addIsNullCondition(String column)
This method allows to add a IsNull condition.
|
void |
addIsNullCondition(String column,
boolean isNegativeCondition)
This method allows to add a IsNull condition.
|
void |
addIsNullCondition(String column,
boolean isNegativeCondition,
String booleanCondition)
This method allows to add a IsNull condition.
|
void |
addLikeCondition(String column,
Object value)
This method allows to add 'like' conditions: column like 'value'.
|
void |
addLikeCondition(String column,
Object value,
String booleanCondition)
This method allows to add 'like' conditions: column like 'value'.
|
void |
addLikeConditionIgnoreCase(String column,
Object value)
This method allows to add 'like' conditions: column like 'value'.
|
void |
addLikeConditionIgnoreCase(String column,
Object value,
String booleanCondition)
This method allows to add 'like' conditions: column like 'value'.
|
void |
addSortingColumn(String columnToSort,
String sortingDirection)
This method allows to add a sorting column to the filter and specify a
sorting direction (order by columnToSort ASC | DESC).
|
void |
addStrictCondition(String column,
Object value)
This method allows to add an 'strict' condition.
|
void |
addStrictCondition(String column,
Object value,
boolean isNegativeCondition)
This method allows to add a 'strict' condition.
|
void |
addStrictCondition(String column,
Object value,
boolean isNegativeCondition,
String booleanCondition)
This method allows to add a 'strict' condition.
|
ArrayList<String> |
getBooleanConditions() |
ArrayList<String> |
getBooleanConditionsIsNull() |
ArrayList<String> |
getColumns() |
ArrayList<String> |
getColumnsIsNull() |
ArrayList<String> |
getColumnsToSort() |
String |
getDefaultBooleanCondition() |
String |
getDefaultConditionOperation() |
ArrayList<Boolean> |
getEqualsOrGreaterThan() |
ArrayList<Boolean> |
getEqualsOrLessThan() |
ArrayList<Boolean> |
getIgnoreCase() |
ArrayList<Boolean> |
getLikes() |
ArrayList<Boolean> |
getNegates() |
ArrayList<Boolean> |
getNegatesIsNull() |
ArrayList<String> |
getSortingDirections() |
ArrayList<Object> |
getValues() |
void |
reset() |
void |
resetConditions() |
void |
resetIsNullConditions() |
void |
resetSortingColumns() |
toString
public static String ASC
public static String DESC
public static char WILDCARD_ALL
public static char WILDCARD_ONE
public static String CONDITION_AND
public static String CONDITION_OR
public BusinessDataFilter()
public BusinessDataFilter(String defaultConditionOperation)
defaultConditionOperation
- default logic operator to concatenate conditions to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addEqualsOrGreaterThanCondition(String column, Object value)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionpublic void addEqualsOrGreaterThanCondition(String column, Object value, String booleanCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addEqualsOrLessThanCondition(String column, Object value)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionpublic void addEqualsOrLessThanCondition(String column, Object value, String booleanCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addIsNullCondition(String column)
column
- column name that provides the value that has to fullfill the
conditionpublic void addIsNullCondition(String column, boolean isNegativeCondition)
column
- column name that provides the value that has to fullfill the
conditionisNegativeCondition
- specifies if the condition it is added with IS NULL or IS NOT
NULLpublic void addIsNullCondition(String column, boolean isNegativeCondition, String booleanCondition)
column
- column name that provides the value that has to fullfill the
conditionisNegativeCondition
- specifies if the condition it is added with IS NULL or IS NOT
NULLbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addLikeCondition(String column, Object value)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionpublic void addLikeCondition(String column, Object value, String booleanCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addLikeConditionIgnoreCase(String column, Object value)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionpublic void addLikeConditionIgnoreCase(String column, Object value, String booleanCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic void addSortingColumn(String columnToSort, String sortingDirection)
columnToSort
- sortingDirection
- public void addStrictCondition(String column, Object value)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionpublic void addStrictCondition(String column, Object value, boolean isNegativeCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionisNegativeCondition
- specifies if the condition it is added with = or != operatorpublic void addStrictCondition(String column, Object value, boolean isNegativeCondition, String booleanCondition)
column
- column name that provides the value to compare with 'value'value
- value to compare in the conditionisNegativeCondition
- specifies if the condition it is added with = or != operatorbooleanCondition
- logic operator (AND or OR) to add this condition to the
filter. You can use static fields CONDITION_AND and
CONDITION_OR for thispublic String getDefaultBooleanCondition()
public String getDefaultConditionOperation()
public void reset()
public void resetConditions()
public void resetIsNullConditions()
public void resetSortingColumns()
Copyright © 2011-2015 Appverse. All Rights Reserved.