|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.info.QueryParameter
public class QueryParameter
Hold information about a single parameter to a query. A parameter
is represented by a colon-prefixed name in a query string,
for example: name = :name
.
This class maps the parameter to an actual value.
Field Summary | |
---|---|
private String |
name
|
private String |
type
|
private String |
value
|
Constructor Summary | |
---|---|
QueryParameter()
Create a new empty query parameter. |
|
QueryParameter(String name,
Float value)
Useful constructor to create a parmeter where the value is a float. |
|
QueryParameter(String name,
Integer value)
Useful constructor to create a parmeter where the value is an integer. |
|
QueryParameter(String name,
String value)
Useful constructor to create a parmeter where the value is a string. |
|
QueryParameter(String name,
String type,
String value)
Create a new query parameter. |
Method Summary | |
---|---|
String |
getName()
Get the parameter name. |
String |
getType()
Get the parameter type. |
String |
getValue()
Set the parameter value. |
void |
setName(String name)
Set the parameter name. |
void |
setType(String type)
Set the parameter type. |
void |
setValue(String value)
Set the parameter name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String name
private String type
private String value
Constructor Detail |
---|
public QueryParameter()
public QueryParameter(String name, String type, String value)
name
- The name of the parametertype
- The type of the parameter, as taken from the
Type
enumerationvalue
- The value of the parameterpublic QueryParameter(String name, Integer value)
name
- The name of the parametervalue
- The value of the parameterpublic QueryParameter(String name, Float value)
name
- The name of the parametervalue
- The value of the parameterpublic QueryParameter(String name, String value)
name
- The name of the parametervalue
- The value of the parameterMethod Detail |
---|
public String getName()
public void setName(String name)
public String getType()
Type
public void setType(String type)
Type
public String getValue()
public void setValue(String value)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |