public class Filter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Filter.ConditionType |
Constructor and Description |
---|
Filter(Filter.ConditionType condition,
Node left,
Node right,
java.lang.String dataType)
Constructor which is used when both side of filter are nodes.
|
Filter(Filter.ConditionType condition,
Node left,
java.lang.String value,
java.lang.String dataType)
Constructor which is used when the right side is a constant value.
|
Modifier and Type | Method and Description |
---|---|
Filter.ConditionType |
getCondition()
Get type of filter i.e (GRT, LST, GEQ, LEQ, LIKE, Timesemantic_Between).
|
java.lang.String |
getDataType()
Get the data type of filter value i.e(xsd:date, int, leave blank for
string).
|
Filter |
getLast()
Get the last filter object.
|
Node |
getLeft()
Get left side filter node.
|
Filter |
getNext()
Get the next filter object.
|
java.lang.String |
getNextCondition()
Get the relation between the current filter and next one i.e (OR, AND).
|
Node |
getRight()
Get the right side filter node.
|
java.lang.String |
getValue()
Get the filter clause value.
|
void |
setNext(java.lang.String nextCondition,
Filter next)
Set next filter object and relation condition to this object.
|
public Filter(Filter.ConditionType condition, Node left, java.lang.String value, java.lang.String dataType) throws java.sql.SQLException
condition
- Type of filter.left
- The left side node.value
- Value of filter.dataType
- Data type of value i.e(xsd:date.).java.sql.SQLException
public Filter(Filter.ConditionType condition, Node left, Node right, java.lang.String dataType)
condition
- Type of filter.left
- The left side node.right
- The right side node.dataType
- Data type of value of right node.public Filter.ConditionType getCondition()
public java.lang.String getValue()
public java.lang.String getDataType()
public java.lang.String getNextCondition()
public Node getLeft()
public Node getRight()
public Filter getNext()
public void setNext(java.lang.String nextCondition, Filter next)
nextCondition
- String that represent the link condition i.e (OR, AND)next
- Filter object that link to this object.public Filter getLast()