SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.query.exp.InMemoryExpression
        |
        +--com.solarmetric.rd.kodo.query.exp.BindVariableExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
BindKeyVariableExpression, BindValueVariableExpression

public class BindVariableExpression
extends InMemoryExpression

Binds a variable to a collection.


Constructor Summary
BindVariableExpression(com.solarmetric.rd.kodo.query.exp.BoundVariable var, com.solarmetric.rd.kodo.query.exp.InMemoryValue val)
          Constructor.
 
Method Summary
protected  java.util.Collection getCollection(java.lang.Object values)
          Return a collection for the given object, produced by eval'ing the value of this expression.
 com.solarmetric.rd.kodo.query.exp.BoundVariable getVariable()
           
 java.util.Collection getVariableValues(java.lang.Object candidate, java.lang.Object orig, com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, java.util.Map params)
          Return the possible values that variable can take.
 
Methods inherited from class com.solarmetric.rd.kodo.query.exp.InMemoryExpression
eval, evaluate, order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindVariableExpression

public BindVariableExpression(com.solarmetric.rd.kodo.query.exp.BoundVariable var,
                              com.solarmetric.rd.kodo.query.exp.InMemoryValue val)
Constructor.

Parameters:
var - the bound variable
val - the value the variable is bound to
Method Detail

getVariable

public com.solarmetric.rd.kodo.query.exp.BoundVariable getVariable()

getVariableValues

public java.util.Collection getVariableValues(java.lang.Object candidate,
                                              java.lang.Object orig,
                                              com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                                              java.util.Map params)
Return the possible values that variable can take.


getCollection

protected java.util.Collection getCollection(java.lang.Object values)
Return a collection for the given object, produced by eval'ing the value of this expression. Simply casts the object to a collection by default.


SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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