Package net.sf.basedb.core.data
Class ItemParameterValueData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.ParameterValueData<BasicData>
-
- net.sf.basedb.core.data.ItemParameterValueData
-
- All Implemented Interfaces:
IdentifiableData
public class ItemParameterValueData extends ParameterValueData<BasicData>
Item parameter value. TheBASE
system expect that the values are of the typeBasicItem
. Internally the objects will be converted toBasicData
objects.- Version:
- 2.0
- Author:
- Nicklas, Samuel
- See Also:
- Developer documentation: Parameters
- Last modified
- $Date: 2016-02-15 11:58:10 +0100 (må, 15 feb 2016) $
- Hibernate: subclass
- discriminator-value="10"
-
-
Field Summary
Fields Modifier and Type Field Description private List<BasicData>
values
-
Fields inherited from class net.sf.basedb.core.data.ParameterValueData
MAX_DESCRIPTION_LENGTH, MAX_LABEL_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ItemParameterValueData()
ItemParameterValueData(BasicData... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BasicData>
getValues()
Get values of this parameter.int
getValueType()
Get the type of parameter values that are store in this parameter.(package private) void
setValues(List<BasicData> values)
Set values of this parameter.-
Methods inherited from class net.sf.basedb.core.data.ParameterValueData
getDescription, getLabel, getOldValues, isMasked, replaceValuesIfDifferent, setDescription, setLabel, setMasked, storeCurrentValuesAsOld
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
-
-
-
Constructor Detail
-
ItemParameterValueData
public ItemParameterValueData()
-
ItemParameterValueData
public ItemParameterValueData(BasicData... values)
-
-
Method Detail
-
getValueType
public int getValueType()
Description copied from class:ParameterValueData
Get the type of parameter values that are store in this parameter. The value should correspond to one of theType.getValue()
values, or 0 if the parameter has no corresponding type.- Specified by:
getValueType
in classParameterValueData<BasicData>
- Returns:
- 0 (No corresponding TYPE entry)
- Since:
- 2.16
-
getValues
public List<BasicData> getValues()
Description copied from class:ParameterValueData
Get values of this parameter. Hibernate mapped in each subclass to a bag containing all values for the parameter.- Specified by:
getValues
in classParameterValueData<BasicData>
- Returns:
- Collection of values.
- Hibernate: collection-key
- column="`id`"
- Hibernate: bag
- table="`ItemValues`" lazy="true"
- Hibernate: many-to-any
- id-type="int" meta-type=""
- Hibernate: many-to-any-column
- name="`data_class`" not-null="true" length="255", name="`data_class_id`" not-null="true"
-
setValues
void setValues(List<BasicData> values)
Description copied from class:ParameterValueData
Set values of this parameter.NOTE! Used by Hibernate to initialize the object. Do not call
AnnotationData.setLastUpdate(java.util.Date)
!- Specified by:
setValues
in classParameterValueData<BasicData>
- Parameters:
values
- Collection of values.
-
-