|
2.12.0: 2009-05-27 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.query.QueryParameter
public class QueryParameter
Holds information (name, type and value) about a single parameter to a query.
Field Summary | |
---|---|
private String |
name
|
private boolean |
permanent
|
private Type |
type
|
private Object |
value
|
Constructor Summary | |
---|---|
QueryParameter(String name)
Create a new empty non-permanent query parameter. |
|
QueryParameter(String name,
boolean permanent,
Type type,
Object value)
Create a new query parameter. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getName()
Get the name of the parameter. |
Type |
getType()
Get the type of the parameter. |
Object |
getValue()
Get the value of the parameter. |
int |
hashCode()
|
boolean |
isPermanent()
Check if the parameter is a permanent parameter. |
void |
setType(Type type)
Changes the type of the parameter. |
void |
setValue(Object value)
Change the value of the parameter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String name
private final boolean permanent
private Type type
private Object value
Constructor Detail |
---|
public QueryParameter(String name)
name
- The name of the parameterpublic QueryParameter(String name, boolean permanent, Type type, Object value)
name
- The name of the parameterpermanent
- If the parameter should be permanent or not. A
permanent parameter can't change it's valuetype
- The type of valuevalue
- The valueMethod Detail |
---|
public String getName()
public boolean isPermanent()
public Type getType()
public void setType(Type type)
type
- The new typepublic Object getValue()
public void setValue(Object value)
value
- The new valuepublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
2.12.0: 2009-05-27 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |