org.molgenis.omx.observ
Class ObservedValue

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.ObservedValue
All Implemented Interfaces:
Serializable, Autoid, Entity

@Entity
public class ObservedValue
extends AbstractEntity
implements Autoid

ObservedValue: Generic storage of values as part of one observation event. Values are atomatic observations, e.g., length (feature) of individual 1 (valueset.target) = 179cm (value). Values can also be qualified by some characteristic, e.g., QTL p-value (feature) between phenotype 'leaf count' (characteristic) and marker 'PVV4' (valueset.target) = 0.1^10+3 (value). .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String FEATURE
           
static String FEATURE_IDENTIFIER
           
static String ID
           
static String OBSERVATIONSET
           
static String OBSERVATIONSET_ID
           
static String VALUE
           
static String VALUE_ID
           
 
Constructor Summary
ObservedValue()
           
ObservedValue(ObservedValue copyMe)
          copy constructor
 
Method Summary
 ObservedValue create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends ObservedValue> find(Database db, QueryRule... rules)
          Shorthand for db.find(ObservedValue.class, org.molgenis.framework.db.QueryRule ...
static ObservedValue findById(Database db, Integer id)
           
 Object get(String name)
          Generic getter.
 Integer getFeature_Id()
           
 String getFeature_Identifier()
          Get a pretty label Identifier for cross reference Feature to ObservableFeature.Id.
 ObservableFeature getFeature()
          Get the References the ObservableFeature that this observation was made on.
 ObservableFeature getFeature(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of ObservedValue.
 String getFields(String sep)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getObservationSet_Id()
           
 ObservationSet getObservationSet()
          Get the Reference to the observation.
 ObservationSet getObservationSet(Database db)
          Deprecated. 
 Integer getValue_Id()
           
 Value getValue()
          Get the The value observed.
 Value getValue(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends ObservedValue> query(Database db)
          Shorthand for db.query(ObservedValue.class).
 void set(Tuple tuple, boolean strict)
           
 void setFeature_Id(Integer feature_id)
          Set foreign key for field feature.
 void setFeature_Identifier(String feature_Identifier)
          Set a pretty label for cross reference Feature to ObservableFeature.Id.
 void setFeature(Integer feature_id)
           
 void setFeature(ObservableFeature feature)
          Set the References the ObservableFeature that this observation was made on.
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setObservationSet_Id(Integer observationSet_id)
          Set foreign key for field observationSet.
 void setObservationSet(Integer observationSet_id)
           
 void setObservationSet(ObservationSet observationSet)
          Set the Reference to the observation.
 void setValue_Id(Integer value_id)
          Set foreign key for field value.
 void setValue(Integer value_id)
           
 void setValue(Value value)
          Set the The value observed.
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.util.AbstractEntity
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, set, set, setReadonly, setValuesFromString, string2date
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.molgenis.util.Entity
getLabelValue, getValues, isReadonly, set, set, setReadonly
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

OBSERVATIONSET

public static final String OBSERVATIONSET
See Also:
Constant Field Values

OBSERVATIONSET_ID

public static final String OBSERVATIONSET_ID
See Also:
Constant Field Values

FEATURE

public static final String FEATURE
See Also:
Constant Field Values

FEATURE_IDENTIFIER

public static final String FEATURE_IDENTIFIER
See Also:
Constant Field Values

VALUE

public static final String VALUE
See Also:
Constant Field Values

VALUE_ID

public static final String VALUE_ID
See Also:
Constant Field Values
Constructor Detail

ObservedValue

public ObservedValue()

ObservedValue

public ObservedValue(ObservedValue copyMe)
              throws Exception
copy constructor

Throws:
Exception
Method Detail

query

public static Query<? extends ObservedValue> query(Database db)
Shorthand for db.query(ObservedValue.class).


find

public static List<? extends ObservedValue> find(Database db,
                                                 QueryRule... rules)
                                          throws DatabaseException
Shorthand for db.find(ObservedValue.class, org.molgenis.framework.db.QueryRule ... rules).

Throws:
DatabaseException

findById

public static ObservedValue findById(Database db,
                                     Integer id)
                              throws DatabaseException
Throws:
DatabaseException

getId

public Integer getId()
Get the automatically generated internal id, only for internal use..

Specified by:
getId in interface Autoid
Returns:
id.

setId

public void setId(Integer id)
Set the automatically generated internal id, only for internal use..

Specified by:
setId in interface Autoid
Parameters:
id -

getObservationSet

public ObservationSet getObservationSet()
Get the Reference to the observation. For example a particular patient visit or the application of a microarray or the calculation of a QTL model.

Returns:
observationSet.

getObservationSet

@Deprecated
public ObservationSet getObservationSet(Database db)
Deprecated. 


setObservationSet

public void setObservationSet(ObservationSet observationSet)
Set the Reference to the observation. For example a particular patient visit or the application of a microarray or the calculation of a QTL model.

Parameters:
observationSet -

setObservationSet_Id

public void setObservationSet_Id(Integer observationSet_id)
Set foreign key for field observationSet. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setObservationSet

public void setObservationSet(Integer observationSet_id)

getObservationSet_Id

public Integer getObservationSet_Id()

getFeature

public ObservableFeature getFeature()
Get the References the ObservableFeature that this observation was made on. For example 'probe123'..

Returns:
feature.

getFeature

@Deprecated
public ObservableFeature getFeature(Database db)
Deprecated. 


setFeature

public void setFeature(ObservableFeature feature)
Set the References the ObservableFeature that this observation was made on. For example 'probe123'..

Parameters:
feature -

setFeature_Id

public void setFeature_Id(Integer feature_id)
Set foreign key for field feature. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setFeature

public void setFeature(Integer feature_id)

getFeature_Id

public Integer getFeature_Id()

getFeature_Identifier

public String getFeature_Identifier()
Get a pretty label Identifier for cross reference Feature to ObservableFeature.Id.


setFeature_Identifier

public void setFeature_Identifier(String feature_Identifier)
Set a pretty label for cross reference Feature to ObservableFeature.Id. Implies setFeature(null) until save


getValue

public Value getValue()
Get the The value observed.

Returns:
value.

getValue

@Deprecated
public Value getValue(Database db)
Deprecated. 


setValue

public void setValue(Value value)
Set the The value observed.

Parameters:
value -

setValue_Id

public void setValue_Id(Integer value_id)
Set foreign key for field value. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setValue

public void setValue(Integer value_id)

getValue_Id

public Integer getValue_Id()

get

public Object get(String name)
Generic getter. Get the property by using the name.

Specified by:
get in interface Entity

validate

public void validate()
              throws DatabaseException
Specified by:
validate in interface Entity
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
Specified by:
set in interface Entity
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(boolean verbose)

getFields

public Vector<String> getFields(boolean skipAutoIds)
Get the names of all public properties of ObservedValue.

Specified by:
getFields in interface Entity

getFields

public Vector<String> getFields()
Specified by:
getFields in interface Entity

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity

getLabelFields

public List<String> getLabelFields()
Specified by:
getLabelFields in interface Entity

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)
Specified by:
getXrefIdFieldName in interface Entity

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

Specified by:
getValues in interface Entity
Overrides:
getValues in class AbstractEntity

create

public ObservedValue create(Tuple tuple)
                     throws Exception
Specified by:
create in interface Entity
Throws:
Exception

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.