| java.lang.Object org.mmbase.storage.search.implementation.ModifiableQuery
ModifiableQuery | public class ModifiableQuery implements SearchQuery(Code) | | A ModifiedQuery enables a modifiable lightweight copy of a
org.mmbase.storage.search.SearchQuery SearchQuery to be created
by wrapping the original query.
This class is provided primarily for use by core-, security- and
storage layer classes, in those rare cases where modifications may be
appropriate to a query before processing it.
The ModifiedQuery wraps the original query, and can be modified
without affecting the original query. Modifications are not validated, and
may lead to inconsistent data in the query (e.g. sorting on fields
that are not in the query), resulting in a query that can not be processed
by the storage.
Avoiding such inconsistencies is the responsibility of the user.
author: Rob van Maris version: $Id: ModifiableQuery.java,v 1.8 2007/03/31 17:12:58 nklasens Exp $ since: MMBase-1.7 |
ModifiableQuery | public ModifiableQuery(SearchQuery query)(Code) | | Creates a new instance of ModifiedQuery
|
getMaxNumber | public int getMaxNumber()(Code) | | |
getOffset | public int getOffset()(Code) | | |
isAggregating | public boolean isAggregating()(Code) | | |
isDistinct | public boolean isDistinct()(Code) | | |
setAggregating | public ModifiableQuery setAggregating(Boolean aggregating)(Code) | | Sets the aggregating property.
Parameters: aggregating - The value of the aggregating property,null means: use query.isAggregating() . This ModifiableQuery instance. |
setConstraint | public ModifiableQuery setConstraint(Constraint constraint)(Code) | | Sets the constraint property.
Parameters: constraint - The constraint, null means: usequery.getConstraint() . This ModifiableQuery instance. |
setDistinct | public ModifiableQuery setDistinct(Boolean distinct)(Code) | | Sets the distinct property.
Parameters: distinct - The value of the distinct property,null means: use query.isDistinct() . This ModifiableQuery instance. |
setFields | public ModifiableQuery setFields(List<StepField> fields)(Code) | | Sets the fields property.
Parameters: fields - The fields, null means: usequery.getFields() . This ModifiableQuery instance. |
setMaxNumber | public ModifiableQuery setMaxNumber(int maxNumber)(Code) | | Sets the maxNumber property.
Parameters: maxNumber - The maxNumber value, -1 means: usequery.getMaxNumber() . This ModifiableQuery instance. |
setOffset | public ModifiableQuery setOffset(int offset)(Code) | | Sets the offset property.
Parameters: offset - The offset value, -1 means: usequery.getOffset() . This ModifiableQuery instance. |
setSortOrders | public ModifiableQuery setSortOrders(List<SortOrder> sortOrders)(Code) | | Sets the sortOrders property.
Parameters: sortOrders - The sortorders, null means: usequery.getSortOrders() . This ModifiableQuery instance. |
setSteps | public ModifiableQuery setSteps(List<Step> steps)(Code) | | Sets the steps property.
Parameters: steps - The steps, null means: usequery.getSteps()ModifiableQuery instance. |
|
|