|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 parameter
public QueryParameter(String name,
Integer value)
name - The name of the parametervalue - The value of the parameter
public QueryParameter(String name,
Float value)
name - The name of the parametervalue - The value of the parameter
public QueryParameter(String name,
String value)
name - The name of the parametervalue - The value of the parameter| Method Detail |
|---|
public String getName()
public void setName(String name)
public String getType()
Typepublic void setType(String type)
Typepublic String getValue()
public void setValue(String value)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||