Package net.sf.basedb.core.data
Class TimestampParameterValueData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ParameterValueData<Date>
net.sf.basedb.core.data.TimestampParameterValueData
- All Implemented Interfaces:
IdentifiableData
Date+time parameter value.
- Since:
- 2.16
- Author:
- Nicklas
- See Also:
- Last modified
- $Date $
- Hibernate: subclass
- discriminator-value="11"
-
Field Summary
Fields inherited from class net.sf.basedb.core.data.ParameterValueData
MAX_DESCRIPTION_LENGTH, MAX_LABEL_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet values of this parameter.int
Get the type of parameter values that are store in this parameter.boolean
replaceValuesIfDifferent
(List<?> values, boolean checkOnly) Overrides the parent method since we need date-specific equals implementation.(package private) void
Set values of this parameter.toString()
The string will look likeClassName[id=55]
orClassName[new]
.Methods inherited from class net.sf.basedb.core.data.ParameterValueData
getDescription, getLabel, getOldValues, isMasked, setDescription, setLabel, setMasked, storeCurrentValuesAsOld
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion
-
Field Details
-
values
-
-
Constructor Details
-
TimestampParameterValueData
public TimestampParameterValueData() -
TimestampParameterValueData
-
-
Method Details
-
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<Date>
- Returns:
- 9 (Type.TIMESTAMP)
- Since:
- 2.16
-
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<Date>
- Returns:
- Collection of values.
- Hibernate: collection-key
- column="`id`"
- Hibernate: collection-element
- column="`value`" type="timestamp" not-null="true"
- Hibernate: bag
- table="`TimestampValues`" lazy="true" cascade="all"
-
setValues
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<Date>
- Parameters:
values
- Collection of values.
-
replaceValuesIfDifferent
Overrides the parent method since we need date-specific equals implementation.- Overrides:
replaceValuesIfDifferent
in classParameterValueData<Date>
checkOnly
- Only check the values, do not replace them even if they are different- Returns:
- TRUE if the values were replaced/different, FALSE if not
- Since:
- 3.9.1, 3.10
-
toString
Description copied from class:BasicData
The string will look likeClassName[id=55]
orClassName[new]
.
-