|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Parameter
Parameter to a Query.
A parameter is not an expression; see ParameterExpr.
| Nested Class Summary | |
|---|---|
static class |
Parameter.Scope
Scope where a parameter is defined. |
| Method Summary | |
|---|---|
Exp |
getDefaultExp()
Returns the expression which provides the default value for this Parameter. |
String |
getDescription()
Returns the description of this Parameter. |
String |
getName()
Returns the name of this Parameter. |
Parameter.Scope |
getScope()
Returns the scope where this parameter is defined. |
Type |
getType()
Returns the type of this Parameter. |
Object |
getValue()
Returns the value of this parameter. |
boolean |
isModifiable()
Returns whether the value of this Parameter can be modified in a query. |
boolean |
isSet()
Returns whether the value of this parameter has been set. |
void |
setValue(Object value)
Sets the value of this parameter. |
void |
unsetValue()
Unsets the value of this parameter. |
| Method Detail |
|---|
Parameter.Scope getScope()
Type getType()
Exp getDefaultExp()
String getName()
String getDescription()
boolean isModifiable()
Object getValue()
If setValue(Object) has not been called, returns the default
value of this parameter.
The type of the value is (depending on the type of the parameter)
a String, Number, or Member.
void setValue(Object value)
value - Value of the parameter; must be a String,
a Double, or a Memberboolean isSet()
If the value has not been set, this parameter will return its default value.
Setting a parameter to null is not equivalent to unsetting it.
To unset a parameter, call unsetValue().
void unsetValue()
After calling this method, the parameter will revert to its default
value, as if setValue(Object) had not been called, and
isSet() will return false.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||