public class JDOBasicPredicate extends Object implements JDOPredicateIF
Modifier and Type | Field and Description |
---|---|
protected BasicPredicateIF |
pred |
Constructor and Description |
---|
JDOBasicPredicate(BasicPredicateIF pred) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildQuery(QueryBuilder builder,
List expressions,
List arguments)
INTERNAL: Registers JDOExpressionsIF for this predicate with the
query builder.
|
int |
getCost(boolean[] boundparams)
INTERNAL.
|
String |
getName()
INTERNAL: Returns the name of the predicate.
|
String |
getSignature()
INTERNAL: Returns a string representing the signature of the
predicate.
|
boolean |
isRecursive()
INTERNAL:
|
void |
prescan(QueryBuilder builder,
List arguments)
INTERNAL: This method will be called before building the
query.
|
QueryMatches |
satisfy(QueryMatches result,
Object[] arguments) |
protected BasicPredicateIF pred
public JDOBasicPredicate(BasicPredicateIF pred)
public String getName()
PredicateIF
getName
in interface PredicateIF
public String getSignature() throws InvalidQueryException
PredicateIF
The instance-of predicate would have a signature of "t t", while /= would have ". .", and in would have ". .+". For full details, see topicmaps.impl.utils.ArgumentValidator.
getSignature
in interface PredicateIF
InvalidQueryException
public int getCost(boolean[] boundparams)
PredicateIF
getCost
in interface PredicateIF
public QueryMatches satisfy(QueryMatches result, Object[] arguments) throws InvalidQueryException
satisfy
in interface BasicPredicateIF
InvalidQueryException
public boolean isRecursive()
JDOPredicateIF
isRecursive
in interface JDOPredicateIF
public void prescan(QueryBuilder builder, List arguments)
JDOPredicateIF
prescan
in interface JDOPredicateIF
public boolean buildQuery(QueryBuilder builder, List expressions, List arguments) throws InvalidQueryException
JDOPredicateIF
buildQuery
in interface JDOPredicateIF
InvalidQueryException