public class FilterTemplate extends java.lang.Object implements FilterSource
Filter
s.Constructor and Description |
---|
FilterTemplate()
Constructor.
|
FilterTemplate(FilterTemplate other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Clause> |
getClauses()
Gets the clauses.
|
java.lang.String |
getDescription()
Gets clear text description of what the source is.
|
java.lang.String |
getExpression()
Gets the filter expression (in SQL).
|
java.lang.String |
getName() |
java.lang.String |
getType()
Gets optional type of filter expression.
|
boolean |
isApplyAtExport()
Gets if filter is applied at export instead of import.
|
boolean |
isEnabled() |
boolean |
matches(Table table,
Column column)
Checks if the template matches a given column.
|
void |
setApplyAtExport(boolean b)
Sets if filter is applied at export instead of import.
|
void |
setEnabled(boolean enabled) |
void |
setExpression(java.lang.String expression)
Sets the filter expression (in SQL).
|
void |
setName(java.lang.String name) |
void |
setType(java.lang.String type)
Sets optional type of filter expression.
|
public FilterTemplate()
public FilterTemplate(FilterTemplate other)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type to setpublic java.lang.String getExpression()
public void setExpression(java.lang.String expression)
public void setApplyAtExport(boolean b)
b
- the valuepublic boolean isApplyAtExport()
public java.lang.String getDescription()
getDescription
in interface FilterSource
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the enabled to setpublic java.util.List<Clause> getClauses()