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()
PredicateIFgetName in interface PredicateIFpublic String getSignature() throws InvalidQueryException
PredicateIFThe 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 PredicateIFInvalidQueryExceptionpublic int getCost(boolean[] boundparams)
PredicateIFgetCost in interface PredicateIFpublic QueryMatches satisfy(QueryMatches result, Object[] arguments) throws InvalidQueryException
satisfy in interface BasicPredicateIFInvalidQueryExceptionpublic boolean isRecursive()
JDOPredicateIFisRecursive in interface JDOPredicateIFpublic void prescan(QueryBuilder builder, List arguments)
JDOPredicateIFprescan in interface JDOPredicateIFpublic boolean buildQuery(QueryBuilder builder, List expressions, List arguments) throws InvalidQueryException
JDOPredicateIFbuildQuery in interface JDOPredicateIFInvalidQueryException