public class Filter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCLUDED_VALUE
Filter expression for exclusion of columns from export.
|
static java.lang.String |
LITERAL_PREFIX
Prefix for "literal" filter expressions.
|
static java.lang.String |
OLD_VALUE_PROP |
static java.lang.String |
OLD_VALUE_PROP_PURE |
static java.lang.String |
OLD_VALUE_PROP_RE |
Constructor and Description |
---|
Filter(java.lang.String expression,
java.lang.String type,
boolean derived,
FilterSource filterSource)
Constructor.
|
Filter(java.lang.String expression,
java.lang.String type,
boolean derived,
FilterSource filterSource,
java.lang.String reason)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAppliedTo() |
java.lang.String |
getExpression()
Gets the filter expression (in SQL).
|
FilterSource |
getFilterSource() |
java.lang.String |
getReason()
Gets reasion.
|
java.lang.String |
getType()
Gets optional type of filter expression.
|
boolean |
isApplyAtExport()
Gets if filter is applied at export instead of import.
|
boolean |
isDerived()
Returns
true iff filter is derived. |
void |
setAppliedTo(java.util.List<java.lang.String> appliedTo) |
void |
setApplyAtExport(boolean b)
Sets if filter is applied at export instead of import.
|
void |
setType(java.lang.String type)
Sets optional type of filter expression.
|
public static final java.lang.String LITERAL_PREFIX
public static final java.lang.String EXCLUDED_VALUE
public static java.lang.String OLD_VALUE_PROP
public static java.lang.String OLD_VALUE_PROP_PURE
public static java.lang.String OLD_VALUE_PROP_RE
public Filter(java.lang.String expression, java.lang.String type, boolean derived, FilterSource filterSource)
expression
- filter expression (in SQL)derived
- derived from parent primary key column?public Filter(java.lang.String expression, java.lang.String type, boolean derived, FilterSource filterSource, java.lang.String reason)
expression
- filter expression (in SQL)derived
- derived from parent primary key column?reason
- reasonpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the type to setpublic java.lang.String getExpression()
public boolean isDerived()
true
iff filter is derived.true
iff filter is derivedpublic FilterSource getFilterSource()
public java.util.List<java.lang.String> getAppliedTo()
public void setAppliedTo(java.util.List<java.lang.String> appliedTo)
appliedTo
- the appliedTo to setpublic void setApplyAtExport(boolean b)
b
- the valuepublic java.lang.String getReason()
public boolean isApplyAtExport()