dk.eobjects.metamodel.query
Class FilterClause
java.lang.Object
dk.eobjects.metamodel.query.QueryClause<FilterItem>
dk.eobjects.metamodel.query.FilterClause
- All Implemented Interfaces:
- java.io.Serializable
public class FilterClause
- extends QueryClause<FilterItem>
Represents a clause of filters in the query. This type of clause is used for
the WHERE and HAVING parts of an SQL query.
Each provided FilterItem will be evaluated with the logical AND operator,
which requires that all filters are applied. Alternatively, if you wan't to
use an OR operator, then use the appropriate constructor of FilterItem to
create a composite filter.
- See Also:
FilterItem,
Serialized Form
| Methods inherited from class dk.eobjects.metamodel.query.QueryClause |
addItem, addItems, addItems, equals, getItem, getItemCount, getItems, removeItem, removeItem, removeItems, setItems, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FilterClause
public FilterClause(Query query,
java.lang.String prefix)
getEvaluatedSelectItems
public java.util.List<SelectItem> getEvaluatedSelectItems()
isColumnReferenced
public boolean isColumnReferenced(Column column)
- Traverses the items and evaluates whether or not the given column is
referenced in either of them.
- Parameters:
column -
- Returns:
- true if the column is referenced in the clause or false if not
Copyright © 2007-2010. All Rights Reserved.