| java.lang.Object org.mmbase.cache.ReleaseStrategy org.mmbase.cache.ConstraintsMatchingStrategy
ConstraintsMatchingStrategy | public class ConstraintsMatchingStrategy extends ReleaseStrategy (Code) | | This strategy will evaluate the constraint on a a query object against a NodeEvent. It will apply the following rules:
new node/delete node
- If the step of a constraint matches the type of the event, and the values of the node don't fall within the
constraint: don't flush.
- If the step of a constraint matches the type of the event, and the values of the node don't fall within the
constraint: flush.
- If no constraints have a step matching the type of the event: flush.
change node Like the above, but an extra check has to be made:
- if the node previously fell within the constraints but now doesn't: flush
- if the node previously didn't fall within the constraints but now does: flush
author: Ernst Bunders since: MMBase-1.8 version: $Id: ConstraintsMatchingStrategy.java,v 1.36 2008/02/03 17:33:56 nklasens Exp $ |
ConstraintsMatchingStrategy | public ConstraintsMatchingStrategy()(Code) | | |
Methods inherited from org.mmbase.cache.ReleaseStrategy | public void clear()(Code)(Java Doc) abstract protected boolean doEvaluate(NodeEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) abstract protected boolean doEvaluate(RelationEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) public boolean equals(Object ob)(Code)(Java Doc) final public StrategyResult evaluate(NodeEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) final public StrategyResult evaluate(RelationEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) public int getAvgEvaluationTimeInMilis()(Code)(Java Doc) protected static List<Constraint> getConstraintsForField(String fieldName, MMObjectBuilder builder, Constraint constraint, SearchQuery query)(Code)(Java Doc) abstract public String getDescription()(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) protected static List<SortOrder> getSortordersForField(String fieldName, MMObjectBuilder builder, List<SortOrder> sortOrders, SearchQuery query)(Code)(Java Doc) public int getTotalEvaluated()(Code)(Java Doc) public long getTotalEvaluationTimeMillis()(Code)(Java Doc) public int getTotalPreserved()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public void setEnabled(boolean newStatus)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|