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

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

public class NamePredicate
extends NamePredicate
implements JDOPredicateIF

INTERNAL: The implementation of the 'name(topic, name-string)' predicate.


Field Summary
protected  TopicMapIF topicmap
           
 
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.NamePredicate
strify
 
Constructor Summary
NamePredicate(TopicMapIF topicmap)
           
 
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:
 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.NamePredicate
getCost, getName, getSignature, satisfy
 
Methods inherited from class java.lang.Object
clone, equals, 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
 

Field Detail

topicmap

protected TopicMapIF topicmap
Constructor Detail

NamePredicate

public NamePredicate(TopicMapIF topicmap)
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


Copyright © 2000-2012 Ontopia.