Package net.sf.basedb.core.data
Class BooleanParameterValueData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.ParameterValueData<Boolean>
-
- net.sf.basedb.core.data.BooleanParameterValueData
-
- All Implemented Interfaces:
IdentifiableData
public class BooleanParameterValueData extends ParameterValueData<Boolean>
Boolean parameter value.- Version:
- 2.0
- Author:
- Nicklas, Samuel
- See Also:
- Developer documentation: Parameters
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
- Hibernate: subclass
- discriminator-value="7"
-
-
Field Summary
Fields Modifier and Type Field Description private List<Boolean>
values
-
Fields inherited from class net.sf.basedb.core.data.ParameterValueData
MAX_DESCRIPTION_LENGTH, MAX_LABEL_LENGTH
-
-
Constructor Summary
Constructors Constructor Description BooleanParameterValueData()
BooleanParameterValueData(Boolean... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Boolean>
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<Boolean> values)
Set values of this parameter.String
toString()
The string will look likeClassName[id=55]
orClassName[new]
.-
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
-
-
-
-
Constructor Detail
-
BooleanParameterValueData
public BooleanParameterValueData()
-
BooleanParameterValueData
public BooleanParameterValueData(Boolean... 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<Boolean>
- Returns:
- 7 (Type.BOOLEAN)
- Since:
- 2.16
-
getValues
public List<Boolean> 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<Boolean>
- Returns:
- Collection of values.
- Hibernate: collection-key
- column="`id`"
- Hibernate: collection-element
- column="`value`" type="boolean" not-null="true"
- Hibernate: bag
- table="`BooleanValues`" lazy="true" cascade="all"
-
setValues
void setValues(List<Boolean> 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<Boolean>
- Parameters:
values
- Collection of values.
-
-