|
||||||||||
| 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.Panel
@Entity public class Panel
Panel: The Panel class defines groups of individuals based on cohort design, case/controls, families, etc. For instance: 'LifeLines cohort', 'middle aged man', 'recombinant mouse inbred Line dba x b6' or 'Smith family'. A Panel can act as a single ObservationTarget. For example: average height (Measurement) in the LifeLines cohort (Panel) is 174cm (ObservedValue). The Panel class maps to XGAP:Strain and PaGE:Panel classes. In METABASE this is assumed there is one panel per study. .
| Field Summary | |
|---|---|
static String |
ID
|
static String |
INDIVIDUALS
|
static String |
INDIVIDUALS_IDENTIFIER
|
static String |
NUMBEROFINDIVIDUALS
|
static String |
PANELTYPE
|
static String |
PANELTYPE_IDENTIFIER
|
static String |
SPECIES
|
static String |
SPECIES_IDENTIFIER
|
| Fields inherited from class org.molgenis.omx.observ.Characteristic |
|---|
__TYPE, DESCRIPTION, IDENTIFIER, NAME |
| Constructor Summary | |
|---|---|
Panel()
|
|
Panel(Panel copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
Panel |
create(Tuple tuple)
|
boolean |
equals(Object obj)
|
static List<? extends Panel> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Panel.class, org.molgenis.framework.db.QueryRule ... |
static Panel |
findById(Database db,
Integer id)
|
static Panel |
findByIdentifier(Database db,
String identifier)
|
Object |
get(String name)
Generic getter. |
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of Panel. |
String |
getFields(String sep)
Deprecated. |
String |
getIdField()
|
Object |
getIdValue()
|
List<Integer> |
getIndividuals_Id()
|
List<String> |
getIndividuals_Identifier()
Get a pretty label for cross reference Individuals to Individual.Id. |
List<Individual> |
getIndividuals()
Get the The list of individuals in this panel. |
List<Individual> |
getIndividuals(Database db)
Deprecated. |
List<String> |
getLabelFields()
|
Integer |
getNumberOfIndividuals()
Get the NumberOfIndividuals. |
Integer |
getNumberOfIndividuals(Database db)
Deprecated. |
Integer |
getPanelType_Id()
|
String |
getPanelType_Identifier()
Get a pretty label Identifier for cross reference PanelType to OntologyTerm.Id. |
OntologyTerm |
getPanelType()
Get the Indicate the type of Panel (example: Sample panel, AssayedPanel, Natural=wild type, Parental=parents of a cross, F1=First generation of cross, RCC=Recombinant congenic, CSS=chromosome substitution). |
OntologyTerm |
getPanelType(Database db)
Deprecated. |
Integer |
getSpecies_Id()
|
String |
getSpecies_Identifier()
Get a pretty label Identifier for cross reference Species to Species.Id. |
Species |
getSpecies()
Get the The species this panel is an instance of/part of/extracted from.. |
Species |
getSpecies(Database db)
Deprecated. |
String |
getValues(String sep)
Deprecated. |
String |
getXrefIdFieldName(String fieldName)
|
int |
hashCode()
|
static Query<? extends Panel> |
query(Database db)
Shorthand for db.query(Panel.class). |
void |
set(Tuple tuple,
boolean strict)
|
void |
setIndividuals_Id(Integer... individuals)
|
void |
setIndividuals_Id(List<Integer> individuals_id)
Set foreign key for field individuals. |
void |
setIndividuals_Identifier(List<String> individuals_Identifier)
Update the foreign key Individuals This sets individuals to null until next database transaction. |
void |
setIndividuals(Individual... individuals)
|
void |
setIndividuals(List<Individual> individuals)
Set the The list of individuals in this panel. |
void |
setNumberOfIndividuals(Integer numberOfIndividuals)
Set the NumberOfIndividuals. |
void |
setPanelType_Id(Integer panelType_id)
Set foreign key for field panelType. |
void |
setPanelType_Identifier(String panelType_Identifier)
Set a pretty label for cross reference PanelType to OntologyTerm.Id. |
void |
setPanelType(Integer panelType_id)
|
void |
setPanelType(OntologyTerm panelType)
Set the Indicate the type of Panel (example: Sample panel, AssayedPanel, Natural=wild type, Parental=parents of a cross, F1=First generation of cross, RCC=Recombinant congenic, CSS=chromosome substitution). |
void |
setSpecies_Id(Integer species_id)
Set foreign key for field species. |
void |
setSpecies_Identifier(String species_Identifier)
Set a pretty label for cross reference Species to Species.Id. |
void |
setSpecies(Integer species_id)
|
void |
setSpecies(Species species)
Set the The species this panel is an instance of/part of/extracted from.. |
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 PANELTYPE
public static final String PANELTYPE_IDENTIFIER
public static final String NUMBEROFINDIVIDUALS
public static final String SPECIES
public static final String SPECIES_IDENTIFIER
public static final String INDIVIDUALS
public static final String INDIVIDUALS_IDENTIFIER
public static final String ID
| Constructor Detail |
|---|
public Panel()
public Panel(Panel copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends Panel> query(Database db)
public static List<? extends Panel> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static Panel findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static Panel findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseExceptionpublic OntologyTerm getPanelType()
@Deprecated public OntologyTerm getPanelType(Database db)
public void setPanelType(OntologyTerm panelType)
panelType - public void setPanelType_Id(Integer panelType_id)
public void setPanelType(Integer panelType_id)
public Integer getPanelType_Id()
public String getPanelType_Identifier()
public void setPanelType_Identifier(String panelType_Identifier)
public Integer getNumberOfIndividuals()
@Deprecated public Integer getNumberOfIndividuals(Database db)
public void setNumberOfIndividuals(Integer numberOfIndividuals)
numberOfIndividuals - public Species getSpecies()
@Deprecated public Species getSpecies(Database db)
public void setSpecies(Species species)
species - public void setSpecies_Id(Integer species_id)
public void setSpecies(Integer species_id)
public Integer getSpecies_Id()
public String getSpecies_Identifier()
public void setSpecies_Identifier(String species_Identifier)
public List<Individual> getIndividuals()
@Deprecated public List<Individual> getIndividuals(Database db)
public void setIndividuals(List<Individual> individuals)
individuals - public void setIndividuals_Id(Integer... individuals)
public void setIndividuals(Individual... individuals)
public void setIndividuals_Id(List<Integer> individuals_id)
public List<Integer> getIndividuals_Id()
public List<String> getIndividuals_Identifier()
public void setIndividuals_Identifier(List<String> individuals_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 Panel create(Tuple tuple)
throws Exception
create in interface Entitycreate in class ObservationTargetExceptionpublic 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 | |||||||||