|
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.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. |
abstract int |
getValueType()
Get the type of parameter values that are store in 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 int getValueType()
Type.getValue()
values, or 0 if the parameter has no corresponding type.
Type enumeration
or 0public abstract List<T> getValues()
abstract void setValues(List<T> values)
NOTE! Used by Hibernate to initialize the object. Do not
call AnnotationData.setLastUpdate(java.util.Date)!
values - Collection of values.public void replaceValues(List<?> values)
NOTE! When this method is called to set annotation values
for an AnnotationData, don't forget to also update
the last update timestamp: AnnotationData.setLastUpdate(java.util.Date).
and to invalidate the annotation set snapshot: AnnotationSet.setSnapshotInvalid()
public void setSingleValue(Object value)
NOTE! When this method is called to set annotation values
for an AnnotationData, don't forget to also update
the last update timestamp: AnnotationData.setLastUpdate(java.util.Date).
and to invalidate the annotation set snapshot: AnnotationSet.setSnapshotInvalid()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||