net.ontopia.topicmaps.query.impl.rdbms
Class RulePredicate

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
      extended by net.ontopia.topicmaps.query.impl.basic.RulePredicate
          extended by net.ontopia.topicmaps.query.impl.rdbms.RulePredicate
All Implemented Interfaces:
BasicPredicateIF, JDOPredicateIF, PredicateIF

public class RulePredicate
extends RulePredicate
implements JDOPredicateIF

INTERNAL: Implements rule predicates.


Field Summary
 
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.RulePredicate
rule, signature
 
Constructor Summary
RulePredicate(ParsedRule rule)
           
 
Method Summary
 boolean buildQuery(QueryBuilder builder, java.util.List expressions, java.util.List arguments)
          INTERNAL: Registers JDOExpressionsIF for this predicate with the query builder.
 boolean isRecursive()
          INTERNAL:
protected  boolean isRecursive(java.util.List clauses, RulePredicate relative_to)
           
 boolean isSelfRecursive()
           
 void prescan(QueryBuilder builder, java.util.List arguments)
          INTERNAL: This method will be called before building the query.
 
Methods inherited from class net.ontopia.topicmaps.query.impl.basic.RulePredicate
equals, getClauses, getCost, getName, getParameters, getSignature, replaceable, satisfy, translate
 
Methods inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
findClauseItems, findClauseVariables, satisfy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ontopia.topicmaps.query.impl.basic.BasicPredicateIF
satisfy
 
Methods inherited from interface net.ontopia.topicmaps.query.parser.PredicateIF
getCost, getName, getSignature
 

Constructor Detail

RulePredicate

public RulePredicate(ParsedRule rule)
Method Detail

isRecursive

public boolean isRecursive()
Description copied from interface: JDOPredicateIF
INTERNAL:

Specified by:
isRecursive in interface JDOPredicateIF

prescan

public void prescan(QueryBuilder builder,
                    java.util.List arguments)
Description copied from interface: JDOPredicateIF
INTERNAL: This method will be called before building the query. It is used mainly for analyzing the predicate.

Specified by:
prescan in interface JDOPredicateIF

buildQuery

public boolean buildQuery(QueryBuilder builder,
                          java.util.List expressions,
                          java.util.List arguments)
                   throws InvalidQueryException
Description copied from interface: JDOPredicateIF
INTERNAL: Registers JDOExpressionsIF for this predicate with the query builder.

Specified by:
buildQuery in interface JDOPredicateIF
Returns:
true if predicate was mapped to JDO expression; false if the predicate could not be mapped to an JDO expression.
Throws:
InvalidQueryException

isSelfRecursive

public boolean isSelfRecursive()

isRecursive

protected boolean isRecursive(java.util.List clauses,
                              RulePredicate relative_to)


Copyright © 2000-2012 Ontopia.