SolarMetric Kodo JDO 3.4.1 generated on May 30 2006

kodo.query
Interface Constant

All Superinterfaces:
Value

public interface Constant
extends Value

Specialization of Value that represents a constant value in the AST. This has no additional behavior. It is returned from ExpressionFactory#newConstant(Object,Object).

Since:
3.3.3

Field Summary
static Object TYPE_BOOLEAN
           
static Object TYPE_NUMBER
           
static Object TYPE_SINGLE_QUOTED_STRING
           
static Object TYPE_STRING
           
static Object TYPE_UNKNOWN
           
 
Method Summary
 Object getConstantType()
          Returns one of TYPE_BOOLEAN, TYPE_NUMBER, TYPE_SINGLE_QUOTED_STRING, TYPE_STRING, or TYPE_UNKNOWN, as appropriate.
 Object getValue()
          Returns the constant value that this object represents.
 void setValue(Object v)
          Sets the constant value that this object represents.
 
Methods inherited from interface kodo.query.Value
getMetaData, getType, isVariable, setImplicitType, setMetaData
 

Field Detail

TYPE_SINGLE_QUOTED_STRING

public static final Object TYPE_SINGLE_QUOTED_STRING

TYPE_STRING

public static final Object TYPE_STRING

TYPE_BOOLEAN

public static final Object TYPE_BOOLEAN

TYPE_NUMBER

public static final Object TYPE_NUMBER

TYPE_UNKNOWN

public static final Object TYPE_UNKNOWN
Method Detail

getConstantType

public Object getConstantType()
Returns one of TYPE_BOOLEAN, TYPE_NUMBER, TYPE_SINGLE_QUOTED_STRING, TYPE_STRING, or TYPE_UNKNOWN, as appropriate.

getValue

public Object getValue()
Returns the constant value that this object represents.

setValue

public void setValue(Object v)
Sets the constant value that this object represents. Care should be taken to ensure that this is set to a type compatible with this constant's type.

SolarMetric Kodo JDO 3.4.1 generated on May 30 2006

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