|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.util.AbstractEntity
org.molgenis.omx.observ.Characteristic
org.molgenis.omx.observ.ObservationTarget
org.molgenis.omx.observ.target.Individual
@Entity public class Individual
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. .
| 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 |
|---|
public static final String MOTHER
public static final String MOTHER_IDENTIFIER
public static final String FATHER
public static final String FATHER_IDENTIFIER
public static final String ID
| Constructor Detail |
|---|
public Individual()
public Individual(Individual copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends Individual> query(Database db)
public static List<? extends Individual> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static Individual findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static Individual findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseExceptionpublic Individual getMother()
@Deprecated public Individual getMother(Database db)
public void setMother(Individual mother)
mother - public void setMother_Id(Integer mother_id)
public void setMother(Integer mother_id)
public Integer getMother_Id()
public String getMother_Identifier()
public void setMother_Identifier(String mother_Identifier)
public Individual getFather()
@Deprecated public Individual getFather(Database db)
public void setFather(Individual father)
father - public void setFather_Id(Integer father_id)
public void setFather(Integer father_id)
public Integer getFather_Id()
public String getFather_Identifier()
public void setFather_Identifier(String father_Identifier)
public Object get(String name)
get in interface Entityget in class ObservationTarget
public void validate()
throws DatabaseException
validate in interface Entityvalidate in class ObservationTargetDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface Entityset in class ObservationTargetExceptionpublic String toString()
toString in class ObservationTargetpublic String toString(boolean verbose)
toString in class ObservationTargetpublic Vector<String> getFields(boolean skipAutoIds)
getFields in interface EntitygetFields in class ObservationTargetpublic Vector<String> getFields()
getFields in interface EntitygetFields in class ObservationTargetpublic String getIdField()
getIdField in interface EntitygetIdField in class ObservationTargetpublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class ObservationTarget@Deprecated public String getFields(String sep)
getFields in interface EntitygetFields in class ObservationTargetpublic Object getIdValue()
getIdValue in interface EntitygetIdValue in class ObservationTargetpublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class ObservationTarget@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class ObservationTarget
public Individual create(Tuple tuple)
throws Exception
create in interface Entitycreate in class ObservationTargetExceptionpublic Collection<Panel> getIndividualsPanelCollection()
public Collection<Panel> getIndividualsPanelCollection(Database db)
public void setIndividualsPanelCollection(Collection<Panel> collection)
public boolean equals(Object obj)
equals in class ObservationTargetpublic int hashCode()
hashCode in class ObservationTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||