| |
|
| java.lang.Object org.apache.ojb.jdo.jdoql.QueryTreeNode org.apache.ojb.jdo.jdoql.LocalVariable
LocalVariable | public class LocalVariable extends QueryTreeNode (Code) | | Encapsulates a variable local to the JDOQL query. This can be either a
variable or a parameter. Variables must be at some point bound to values
either directly by the user of the query (if a parameter) or during
evaluation of the query.
author: Thomas Dudziak |
LocalVariable | public LocalVariable(Type type, String name)(Code) | | Creates a new variable object.
Parameters: type - The type of the variable Parameters: name - The name of the variable |
getName | public String getName()(Code) | | Returns the name of the variable.
The name |
getType | public Type getType()(Code) | | Returns the type of the variable.
The type |
getValue | public Object getValue()(Code) | | Returns the value of this variable
The value |
isBound | public boolean isBound()(Code) | | Returns whether this variable is bound to a value.
true if the variable has a value |
setValue | public void setValue(Object value)(Code) | | Sets the value of the variable.
Parameters: value - The value |
|
|
|