|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.query.Parameter
public class Parameter
A parameter to be or already resolved. This class identifies a parameter that as to be resolved in query. The parameter is identified by a string which is basicaly the name of the value it should bind. The type of the parameter is specified by an integer matching exactly the types defined by the fr.gael.drb.value package. If the parameter is not resolved, the default value, if provided is used instead.
| Constructor Summary | |
|---|---|
Parameter(String name,
int type,
Value default_value)
Builds a parameter class |
|
| Method Summary | |
|---|---|
Value |
getDefaultValue()
Returns the default value of the parameter. |
String |
getName()
Returns the parameter name. |
int |
getType()
Returns the type of the parameter. |
Value |
getValue()
Returns the value of the parameter. |
protected void |
setDefaultValue(Value value)
Set the default value of the parameter. |
protected void |
setName(String name)
Set the parameter name. |
protected void |
setType(int type)
Set the parameter type. |
void |
setValue(Value value)
Set the value of the parameter. |
String |
toString()
Prints out a parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Parameter(String name,
int type,
Value default_value)
name - name of the parameter.type - type of the parameter.default_value - value of the parameter (may be null).| Method Detail |
|---|
protected void setName(String name)
name - the name to be considered ofr the parameter.public String getName()
protected void setType(int type)
type - the type of the parameter.public int getType()
protected void setDefaultValue(Value value)
value - the default value (may be null).public Value getDefaultValue()
public void setValue(Value value)
value - the value resolving the parameter. It shall never be null.public Value getValue()
public String toString()
toString in class Object
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||