Last update: 2011-06-23

org.proteios.core.data
Class ParameterValueData<T>

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.ParameterValueData<T>
All Implemented Interfaces:
IdentifiableData
Direct Known Subclasses:
BooleanParameterValueData, DateParameterValueData, DoubleParameterValueData, FileParameterValueData, FloatParameterValueData, IntegerParameterValueData, ItemParameterValueData, LongParameterValueData, StringParameterValueData, TextParameterValueData

public abstract class ParameterValueData<T>
extends BasicData

The base class for the different types of parameter values.

Version:
2.0
Author:
Nicklas, Samuel
See Also:
Parameters overview
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
Hibernate: class
table="`ParameterValues`" discriminator-value="-1" lazy="true" batch-size="10"
Hibernate: discriminator
column="`discriminator`" type="int"

Method Summary
abstract  List<T> getValues()
          Get values of this parameter.
 void replaceValues(List<?> values)
          Replace the values in the database with the new values in the specified list.
 void setSingleValue(Object value)
          Replace the current list with a single new value.
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getValues

public abstract List<T> getValues()
Get values of this parameter. Hibernate mapped in each subclass to a bag containing all values for the parameter.

Returns:
Collection of values.

replaceValues

public void replaceValues(List<?> values)
Replace the values in the database with the new values in the specified list. It is expected that the list contains only objects of the correct type.


setSingleValue

public void setSingleValue(Object value)
Replace the current list with a single new value. It is expected that the value is of the correct type.


Last update: 2011-06-23