net.sf.basedb.core.data
Class LongParameterValueData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ParameterValueData<Long>
net.sf.basedb.core.data.LongParameterValueData
- All Implemented Interfaces:
- IdentifiableData
public class LongParameterValueData
- extends ParameterValueData<Long>
Long parameter value.
- Version:
- 2.0
- Author:
- Nicklas, Samuel
- See Also:
- Parameters overview
- Last modified
- $Date: 2005-07-14 09:57:11 +0200 (to, 14 jul 2005) $
- Hibernate: subclass
- discriminator-value="2"
Method Summary |
List<Long> |
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<Long> values)
Set values of this parameter. |
String |
toString()
The string will look like ClassName[id=55] or
ClassName[new] . |
values
private List<Long> values
LongParameterValueData
public LongParameterValueData()
LongParameterValueData
public LongParameterValueData(Long... 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<Long>
- Returns:
- 2 (Type.LONG)
- Since:
- 2.16
getValues
public List<Long> 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<Long>
- Returns:
- Collection of values.
- Hibernate: collection-key
- column="`id`"
- Hibernate: collection-element
- column="`value`" type="long" not-null="true"
- Hibernate: bag
- table="`LongValues`" lazy="true" cascade="all"
setValues
void setValues(List<Long> 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<Long>
- 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