Class TimestampParameterValueData

All Implemented Interfaces:
IdentifiableData

public class TimestampParameterValueData extends ParameterValueData<Date>
Date+time parameter value.
Since:
2.16
Author:
Nicklas
See Also:
Last modified
$Date $
Hibernate: subclass
discriminator-value="11"
  • Field Details

  • Constructor Details

    • TimestampParameterValueData

      public TimestampParameterValueData()
    • TimestampParameterValueData

      public TimestampParameterValueData(Date... values)
  • 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 the Type.getValue() values, or 0 if the parameter has no corresponding type.
      Specified by:
      getValueType in class ParameterValueData<Date>
      Returns:
      9 (Type.TIMESTAMP)
      Since:
      2.16
    • getValues

      public List<Date> 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<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

      void setValues(List<Date> 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<Date>
      Parameters:
      values - Collection of values.
    • replaceValuesIfDifferent

      public boolean replaceValuesIfDifferent(List<?> values, boolean checkOnly)
      Overrides the parent method since we need date-specific equals implementation.
      Overrides:
      replaceValuesIfDifferent in class ParameterValueData<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

      public String toString()
      Description copied from class: BasicData
      The string will look like ClassName[id=55] or ClassName[new].
      Overrides:
      toString in class BasicData