|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ValueTable manages values for declared identifiers (such as variables or parameters) of a query. It provides methods to declare an identifier, to set and get its value and check a value to be compaitible with the identifier's type.
Method Summary | |
void |
declare(Declaration decl)
This method declares an identifier. |
java.lang.Object |
getValue(java.lang.String name)
Returns the current value of the specified identifier. |
boolean |
isCompatibleValue(java.lang.String name,
java.lang.Object value)
Checks whether the type of the specified value is compatible with the type of the identifier. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value of the specified identifier for later retrieval using method getValue(java.lang.String) ). |
Method Detail |
public void declare(Declaration decl)
decl
- the declaration nodepublic void setValue(java.lang.String name, java.lang.Object value)
getValue(java.lang.String)
). The identifier must be declared (see method
declare(org.apache.jdo.jdoql.tree.Declaration)
) prior to a call of this method.
name
- the name of the identifiervalue
- the new value of the identifierpublic java.lang.Object getValue(java.lang.String name)
declare(org.apache.jdo.jdoql.tree.Declaration)
) and its value must be
set using method getValue(java.lang.String)
) prior to a call of this method.
name
- the name of the identifier
public boolean isCompatibleValue(java.lang.String name, java.lang.Object value)
true
if the type of the value is compatible with
the type of the identifier; false
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |