|
2.8.3: 2008-10-15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ParameterValueData<T>
public abstract class ParameterValueData<T>
The base class for the different types of parameter values.
Field Summary | |
---|---|
private String |
description
|
private String |
label
|
static int |
MAX_DESCRIPTION_LENGTH
The maximum length of the description of the parameter that can be stored in the database. |
static int |
MAX_LABEL_LENGTH
The maximum length of the label of the parameter that can be stored in the database. |
Constructor Summary | |
---|---|
ParameterValueData()
|
|
ParameterValueData(T... values)
|
Method Summary | |
---|---|
String |
getDescription()
Get the description of the parameter. |
String |
getLabel()
Get the label of the parameter. |
abstract List<T> |
getValues()
Get values of this parameter. |
void |
replaceValues(List<?> values)
Replace the values in the database with the new values in the specified list. |
void |
setDescription(String description)
|
void |
setLabel(String label)
|
void |
setSingleValue(Object value)
Replace the current list with a single new value. |
(package private) abstract void |
setValues(List<T> values)
Set values of this parameter. |
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LABEL_LENGTH
setLabel(String)
,
Constant Field Valuesprivate String label
public static final int MAX_DESCRIPTION_LENGTH
setDescription(String)
,
Constant Field Valuesprivate String description
Constructor Detail |
---|
ParameterValueData()
ParameterValueData(T... values)
Method Detail |
---|
public String getLabel()
public void setLabel(String label)
public String getDescription()
public void setDescription(String description)
public abstract List<T> getValues()
abstract void setValues(List<T> values)
values
- Collection of values.public void replaceValues(List<?> values)
public void setSingleValue(Object value)
|
2.8.3: 2008-10-15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |