SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.query.exp.Constant
All Implemented Interfaces:
InMemoryValue, Value

public class Constant
extends java.lang.Object
implements InMemoryValue

Represents a constant.


Constructor Summary
Constant(java.lang.Object val)
          Constructor.
 
Method Summary
 void castTo(java.lang.Class cls)
          Cast this value to the given type.
 java.lang.Object evaluate(java.lang.Object candidate, java.lang.Object orig, com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, java.util.Map params)
          Evaluate the given candidate.
 boolean isVariable()
          Return true if this value is a variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant(java.lang.Object val)
Constructor. Provide constant value.

Method Detail

isVariable

public boolean isVariable()
Description copied from interface: Value
Return true if this value is a variable.

Specified by:
isVariable in interface Value

castTo

public void castTo(java.lang.Class cls)
Description copied from interface: InMemoryValue
Cast this value to the given type.

Specified by:
castTo in interface InMemoryValue

evaluate

public java.lang.Object evaluate(java.lang.Object candidate,
                                 java.lang.Object orig,
                                 com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                                 java.util.Map params)
Description copied from interface: InMemoryValue
Evaluate the given candidate.

Specified by:
evaluate in interface InMemoryValue

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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