net.ontopia.persistence.query.jdo
Class JDOEvaluator
java.lang.Object
net.ontopia.persistence.query.jdo.JDOEvaluator
public class JDOEvaluator
- extends java.lang.Object
INTERNAL: Methods for reducing JDOExpressionIF, so that expressions
that require no input data can be removed from the query.
Return values [type int] from evaluate methods: 1 is true, -1 is
false, 0 means cannot be evaluated.
Method Summary |
static int |
evaluateAnd(JDOAnd jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
|
static int |
evaluateBoolean(JDOBoolean jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateContains(JDOContains jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateEndsWith(JDOEndsWith jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateEquals(JDOEquals jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateExpression(JDOExpressionIF jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
|
static int |
evaluateIsEmpty(JDOIsEmpty jdoexpr,
ObjectRelationalMappingIF mapping)
|
static java.lang.Object |
evaluateJDOValue(JDOValueIF jdovalue,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateLike(JDOLike jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateNot(JDONot jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
|
static int |
evaluateNotEquals(JDONotEquals jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateOr(JDOOr jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
|
static int |
evaluateStartsWith(JDOStartsWith jdoexpr,
ObjectRelationalMappingIF mapping)
|
static int |
evaluateValueExpression(JDOValueExpression jdoexpr,
ObjectRelationalMappingIF mapping)
|
static boolean |
isEvaluatable(JDOValueIF jdovalue,
ObjectRelationalMappingIF mapping)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOEvaluator
public JDOEvaluator()
evaluateExpression
public static int evaluateExpression(JDOExpressionIF jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
evaluateBoolean
public static int evaluateBoolean(JDOBoolean jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateValueExpression
public static int evaluateValueExpression(JDOValueExpression jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateEquals
public static int evaluateEquals(JDOEquals jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateNotEquals
public static int evaluateNotEquals(JDONotEquals jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateContains
public static int evaluateContains(JDOContains jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateIsEmpty
public static int evaluateIsEmpty(JDOIsEmpty jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateStartsWith
public static int evaluateStartsWith(JDOStartsWith jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateEndsWith
public static int evaluateEndsWith(JDOEndsWith jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateLike
public static int evaluateLike(JDOLike jdoexpr,
ObjectRelationalMappingIF mapping)
evaluateAnd
public static int evaluateAnd(JDOAnd jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
evaluateOr
public static int evaluateOr(JDOOr jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
evaluateNot
public static int evaluateNot(JDONot jdoexpr,
ObjectRelationalMappingIF mapping,
boolean reduce)
isEvaluatable
public static boolean isEvaluatable(JDOValueIF jdovalue,
ObjectRelationalMappingIF mapping)
evaluateJDOValue
public static java.lang.Object evaluateJDOValue(JDOValueIF jdovalue,
ObjectRelationalMappingIF mapping)
Copyright © 2000-2012 Ontopia.