SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.query.exp
Class BindVariableAndExpression

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.query.exp.InMemoryExpression
        |
        +--com.solarmetric.rd.kodo.query.exp.AndExpression
              |
              +--com.solarmetric.rd.kodo.query.exp.BindVariableAndExpression
All Implemented Interfaces:
Expression

public class BindVariableAndExpression
extends AndExpression

Any contains(var) expression must be followed by at least one AND clause using the variable 'var'. This expression type represents one of those and AND clauses. It is responsible for evaluating the right subexpression for every possible value of the variable.


Constructor Summary
BindVariableAndExpression(com.solarmetric.rd.kodo.query.exp.BindVariableExpression var, com.solarmetric.rd.kodo.query.exp.InMemoryExpression exp)
          Constructor.
 
Method Summary
protected  boolean eval(java.lang.Object candidate, java.lang.Object orig, com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, java.util.Map params)
          Evaluate the expression for the given context candidate and original candidate.
 
Methods inherited from class com.solarmetric.rd.kodo.query.exp.AndExpression
getExpression1, getExpression2
 
Methods inherited from class com.solarmetric.rd.kodo.query.exp.InMemoryExpression
evaluate, order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindVariableAndExpression

public BindVariableAndExpression(com.solarmetric.rd.kodo.query.exp.BindVariableExpression var,
                                 com.solarmetric.rd.kodo.query.exp.InMemoryExpression exp)
Constructor. Provide expression binding the variable and the expression it is AND'd with.

Method Detail

eval

protected boolean eval(java.lang.Object candidate,
                       java.lang.Object orig,
                       com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                       java.util.Map params)
Description copied from class: InMemoryExpression
Evaluate the expression for the given context candidate and original candidate.

Overrides:
eval in class AndExpression

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.