|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectdk.eobjects.metamodel.query.FilterItem
public class FilterItem
Represents a filter in a query that resides either within a WHERE clause or a HAVING clause
FilterClause,
OperatorType,
Serialized Form| Constructor Summary | |
|---|---|
FilterItem(FilterItem... items)
Creates a composite filter item based on other filter items. |
|
FilterItem(SelectItem selectItem,
OperatorType operator,
java.lang.Object operand)
Creates a single filter item based on a SelectItem, an operator and an operand. |
|
FilterItem(java.lang.String expression)
Creates a single unvalidated filter item based on a expression. |
|
| Method Summary | |
|---|---|
protected FilterItem |
clone()
|
boolean |
equals(java.lang.Object obj)
|
boolean |
evaluate(Row row)
Does a "manual" evaluation, useful for CSV data and alike, where queries cannot be created. |
java.lang.String |
getExpression()
|
java.lang.Object |
getOperand()
|
OperatorType |
getOperator()
|
Query |
getQuery()
|
SelectItem |
getSelectItem()
|
int |
hashCode()
|
boolean |
isReferenced(Column column)
|
FilterItem |
setOperand(java.lang.Object operand)
|
FilterItem |
setOperator(OperatorType operator)
|
FilterItem |
setQuery(Query query)
|
FilterItem |
setSelectItem(SelectItem selectItem)
|
java.lang.String |
toString()
Parses the constraint as a SQL Where-clause |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterItem(SelectItem selectItem,
OperatorType operator,
java.lang.Object operand)
throws java.lang.IllegalArgumentException
selectItem - the selectItem to put constraints on, cannot be nulloperator - The operator to use. Can be OperatorType.EQUALS_TO,
OperatorType.DIFFERENT_FROM,
OperatorType.GREATER_THAN,OperatorType.SMALLER_THANoperand - The operand. Can be a constant like null or a String, a
Number, a Boolean, a Date, a Time, a DateTime. Or another
SelectItem
java.lang.IllegalArgumentException - if the SelectItem is null or if the combination of operator
and operand does not make sense.public FilterItem(java.lang.String expression)
expression - An expression to use for the filter, for example
"YEAR(my_date) = 2008".public FilterItem(FilterItem... items)
items - the items to include in the composite| Method Detail |
|---|
public SelectItem getSelectItem()
public FilterItem setSelectItem(SelectItem selectItem)
public OperatorType getOperator()
public FilterItem setOperator(OperatorType operator)
public java.lang.Object getOperand()
public FilterItem setOperand(java.lang.Object operand)
public java.lang.String getExpression()
public Query getQuery()
getQuery in interface IQueryItempublic FilterItem setQuery(Query query)
setQuery in interface IQueryItempublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean evaluate(Row row)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected FilterItem clone()
clone in class java.lang.Objectpublic boolean isReferenced(Column column)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||