org.molgenis.omx.observ
Class ObservationSet

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

@Entity
public class ObservationSet
extends AbstractEntity
implements Autoid

ObservationSet: In practice: Observation is one row within a DataSet. .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ID
           
static String PARTOFDATASET
           
static String PARTOFDATASET_IDENTIFIER
           
static String TIME
           
 
Constructor Summary
ObservationSet()
           
ObservationSet(ObservationSet copyMe)
          copy constructor
 
Method Summary
 ObservationSet create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends ObservationSet> find(Database db, QueryRule... rules)
          Shorthand for db.find(ObservationSet.class, org.molgenis.framework.db.QueryRule ...
static ObservationSet findById(Database db, Integer id)
           
static ObservationSet findByPartOfDataSetTime(Database db, Integer partOfDataSet, Date time)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of ObservationSet.
 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 getPartOfDataSet_Id()
           
 String getPartOfDataSet_Identifier()
          Get a pretty label Identifier for cross reference PartOfDataSet to DataSet.Id.
 DataSet getPartOfDataSet()
          Get the DataSet this ValueSet is part of..
 DataSet getPartOfDataSet(Database db)
          Deprecated. 
 Date getTime()
          Get the Time of this observationSet.
 Date getTime(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends ObservationSet> query(Database db)
          Shorthand for db.query(ObservationSet.class).
 void set(Tuple tuple, boolean strict)
           
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setPartOfDataSet_Id(Integer partOfDataSet_id)
          Set foreign key for field partOfDataSet.
 void setPartOfDataSet_Identifier(String partOfDataSet_Identifier)
          Set a pretty label for cross reference PartOfDataSet to DataSet.Id.
 void setPartOfDataSet(DataSet partOfDataSet)
          Set the DataSet this ValueSet is part of..
 void setPartOfDataSet(Integer partOfDataSet_id)
           
 void setTime(Date time)
          Set the Time of this observationSet.
 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

PARTOFDATASET

public static final String PARTOFDATASET
See Also:
Constant Field Values

PARTOFDATASET_IDENTIFIER

public static final String PARTOFDATASET_IDENTIFIER
See Also:
Constant Field Values

TIME

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

ObservationSet

public ObservationSet()

ObservationSet

public ObservationSet(ObservationSet copyMe)
               throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findByPartOfDataSetTime

public static ObservationSet findByPartOfDataSetTime(Database db,
                                                     Integer partOfDataSet,
                                                     Date time)
                                              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 -

getPartOfDataSet

public DataSet getPartOfDataSet()
Get the DataSet this ValueSet is part of..

Returns:
partOfDataSet.

getPartOfDataSet

@Deprecated
public DataSet getPartOfDataSet(Database db)
Deprecated. 


setPartOfDataSet

public void setPartOfDataSet(DataSet partOfDataSet)
Set the DataSet this ValueSet is part of..

Parameters:
partOfDataSet -

setPartOfDataSet_Id

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


setPartOfDataSet

public void setPartOfDataSet(Integer partOfDataSet_id)

getPartOfDataSet_Id

public Integer getPartOfDataSet_Id()

getPartOfDataSet_Identifier

public String getPartOfDataSet_Identifier()
Get a pretty label Identifier for cross reference PartOfDataSet to DataSet.Id.


setPartOfDataSet_Identifier

public void setPartOfDataSet_Identifier(String partOfDataSet_Identifier)
Set a pretty label for cross reference PartOfDataSet to DataSet.Id. Implies setPartOfDataSet(null) until save


getTime

public Date getTime()
Get the Time of this observationSet.

Returns:
time.

getTime

@Deprecated
public Date getTime(Database db)
Deprecated. 


setTime

public void setTime(Date time)
Set the Time of this observationSet.

Parameters:
time -

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 ObservationSet.

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 ObservationSet 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.