org.molgenis.omx.observ.target
Class Individual

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.Characteristic
          extended by org.molgenis.omx.observ.ObservationTarget
              extended by org.molgenis.omx.observ.target.Individual
All Implemented Interfaces:
Serializable, Autoid, Identifiable, Entity

@Entity
public class Individual
extends ObservationTarget

Individual: The Individuals class defines the subjects that are used as observation target. The Individual class maps to XGAP:Individual and PaGE:Individual. Groups of individuals can be defined via Panel. .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String FATHER
           
static String FATHER_IDENTIFIER
           
static String ID
           
static String MOTHER
           
static String MOTHER_IDENTIFIER
           
 
Fields inherited from class org.molgenis.omx.observ.Characteristic
__TYPE, DESCRIPTION, IDENTIFIER, NAME
 
Constructor Summary
Individual()
           
Individual(Individual copyMe)
          copy constructor
 
Method Summary
 Individual create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Individual> find(Database db, QueryRule... rules)
          Shorthand for db.find(Individual.class, org.molgenis.framework.db.QueryRule ...
static Individual findById(Database db, Integer id)
           
static Individual findByIdentifier(Database db, String identifier)
           
 Object get(String name)
          Generic getter.
 Integer getFather_Id()
           
 String getFather_Identifier()
          Get a pretty label Identifier for cross reference Father to Individual.Id.
 Individual getFather()
          Get the Refers to the father of the individual..
 Individual getFather(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Individual.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 Collection<Panel> getIndividualsPanelCollection()
           
 Collection<Panel> getIndividualsPanelCollection(Database db)
           
 List<String> getLabelFields()
           
 Integer getMother_Id()
           
 String getMother_Identifier()
          Get a pretty label Identifier for cross reference Mother to Individual.Id.
 Individual getMother()
          Get the Refers to the mother of the individual..
 Individual getMother(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Individual> query(Database db)
          Shorthand for db.query(Individual.class).
 void set(Tuple tuple, boolean strict)
           
 void setFather_Id(Integer father_id)
          Set foreign key for field father.
 void setFather_Identifier(String father_Identifier)
          Set a pretty label for cross reference Father to Individual.Id.
 void setFather(Individual father)
          Set the Refers to the father of the individual..
 void setFather(Integer father_id)
           
 void setIndividualsPanelCollection(Collection<Panel> collection)
           
 void setMother_Id(Integer mother_id)
          Set foreign key for field mother.
 void setMother_Identifier(String mother_Identifier)
          Set a pretty label for cross reference Mother to Individual.Id.
 void setMother(Individual mother)
          Set the Refers to the mother of the individual..
 void setMother(Integer mother_id)
           
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.omx.observ.Characteristic
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getDescription, getDescription, getId, getIdentifier, getIdentifier, getName, getName, getValueMrefValueCollection, getValueMrefValueCollection, set__Type, setDescription, setId, setIdentifier, setName, setValueMrefValueCollection
 
Methods inherited from class org.molgenis.util.AbstractEntity
getLabelValue, getValues, isObjectRepresentation, isReadonly, 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

MOTHER

public static final String MOTHER
See Also:
Constant Field Values

MOTHER_IDENTIFIER

public static final String MOTHER_IDENTIFIER
See Also:
Constant Field Values

FATHER

public static final String FATHER
See Also:
Constant Field Values

FATHER_IDENTIFIER

public static final String FATHER_IDENTIFIER
See Also:
Constant Field Values

ID

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

Individual

public Individual()

Individual

public Individual(Individual copyMe)
           throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findByIdentifier

public static Individual findByIdentifier(Database db,
                                          String identifier)
                                   throws DatabaseException
Throws:
DatabaseException

getMother

public Individual getMother()
Get the Refers to the mother of the individual..

Returns:
mother.

getMother

@Deprecated
public Individual getMother(Database db)
Deprecated. 


setMother

public void setMother(Individual mother)
Set the Refers to the mother of the individual..

Parameters:
mother -

setMother_Id

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


setMother

public void setMother(Integer mother_id)

getMother_Id

public Integer getMother_Id()

getMother_Identifier

public String getMother_Identifier()
Get a pretty label Identifier for cross reference Mother to Individual.Id.


setMother_Identifier

public void setMother_Identifier(String mother_Identifier)
Set a pretty label for cross reference Mother to Individual.Id. Implies setMother(null) until save


getFather

public Individual getFather()
Get the Refers to the father of the individual..

Returns:
father.

getFather

@Deprecated
public Individual getFather(Database db)
Deprecated. 


setFather

public void setFather(Individual father)
Set the Refers to the father of the individual..

Parameters:
father -

setFather_Id

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


setFather

public void setFather(Integer father_id)

getFather_Id

public Integer getFather_Id()

getFather_Identifier

public String getFather_Identifier()
Get a pretty label Identifier for cross reference Father to Individual.Id.


setFather_Identifier

public void setFather_Identifier(String father_Identifier)
Set a pretty label for cross reference Father to Individual.Id. Implies setFather(null) until save


get

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

Specified by:
get in interface Entity
Overrides:
get in class ObservationTarget

validate

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

set

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

toString

public String toString()
Overrides:
toString in class ObservationTarget

toString

public String toString(boolean verbose)
Overrides:
toString in class ObservationTarget

getFields

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

Specified by:
getFields in interface Entity
Overrides:
getFields in class ObservationTarget

getFields

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

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity
Overrides:
getIdField in class ObservationTarget

getLabelFields

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

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity
Overrides:
getFields in class ObservationTarget

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity
Overrides:
getIdValue in class ObservationTarget

getXrefIdFieldName

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

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

public Individual create(Tuple tuple)
                  throws Exception
Specified by:
create in interface Entity
Overrides:
create in class ObservationTarget
Throws:
Exception

getIndividualsPanelCollection

public Collection<Panel> getIndividualsPanelCollection()

getIndividualsPanelCollection

public Collection<Panel> getIndividualsPanelCollection(Database db)

setIndividualsPanelCollection

public void setIndividualsPanelCollection(Collection<Panel> collection)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class ObservationTarget


Copyright © 2013. All Rights Reserved.