net.sf.basedb.core.data
Class StringParameterValueData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ParameterValueData<String>
net.sf.basedb.core.data.StringParameterValueData
- All Implemented Interfaces:
- IdentifiableData
public class StringParameterValueData
- extends ParameterValueData<String>
String parameter value. The maximum length of string values are 255.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Parameters overview
- Last modified
- $Date: 2010-10-01 13:51:57 +0200 (Fri, 01 Oct 2010) $
- Hibernate: subclass
- discriminator-value="5"
values
private List<String> values
StringParameterValueData
public StringParameterValueData()
StringParameterValueData
public StringParameterValueData(String... values)
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 the
Type.getValue()
values, or 0 if the parameter has no corresponding type.
- Specified by:
getValueType
in class ParameterValueData<String>
- Returns:
- 5 (Type.STRING)
- Since:
- 2.16
getValues
public List<String> 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 class ParameterValueData<String>
- Returns:
- Collection of values.
- Hibernate: collection-key
- column="`id`"
- Hibernate: collection-element
- column="`value`" type="string" length="255" not-null="true"
- Hibernate: bag
- table="`StringValues`" lazy="true" cascade="all"
setValues
void setValues(List<String> 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 class ParameterValueData<String>
- Parameters:
values
- Collection of values.
toString
public String toString()
- Description copied from class:
BasicData
- The string will look like
ClassName[id=55]
or
ClassName[new]
.
- Overrides:
toString
in class BasicData