|
||||||||||
| 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.target.OntologyTerm
@Entity public class OntologyTerm
OntologyTerm: OntologyTerm defines a single entry (term) from an ontology or a controlled vocabulary (defined by Ontology). The identifier is the ontology term is unique. E.g. 'NCI:Antigen Gene'. Other data entities can reference to this OntologyTerm to harmonize naming of concepts. If no suitable ontology term exists then one can define new terms locally (in which case there is no formal accession for the term limiting its use for cross-Investigation queries). .
| Field Summary | |
|---|---|
static String |
DEFINITION
|
static String |
ID
|
static String |
ONTOLOGY
|
static String |
ONTOLOGY_IDENTIFIER
|
static String |
TERMACCESSION
|
| Fields inherited from class org.molgenis.omx.observ.Characteristic |
|---|
__TYPE, DESCRIPTION, IDENTIFIER, NAME |
| Constructor Summary | |
|---|---|
OntologyTerm()
|
|
OntologyTerm(OntologyTerm copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
OntologyTerm |
create(Tuple tuple)
|
boolean |
equals(Object obj)
|
static List<? extends OntologyTerm> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(OntologyTerm.class, org.molgenis.framework.db.QueryRule ... |
static OntologyTerm |
findById(Database db,
Integer id)
|
static OntologyTerm |
findByIdentifier(Database db,
String identifier)
|
static OntologyTerm |
findByOntologyTermAccession(Database db,
Integer ontology,
String termAccession)
|
Object |
get(String name)
Generic getter. |
String |
getDefinition()
Get the (Optional) The definition of the term.. |
String |
getDefinition(Database db)
Deprecated. |
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of OntologyTerm. |
String |
getFields(String sep)
Deprecated. |
String |
getIdField()
|
Object |
getIdValue()
|
List<String> |
getLabelFields()
|
Integer |
getOntology_Id()
|
String |
getOntology_Identifier()
Get a pretty label Identifier for cross reference Ontology to Ontology.Id. |
Ontology |
getOntology()
Get the (Optional) The source ontology or controlled vocabulary list that ontology terms have been obtained from.. |
Ontology |
getOntology(Database db)
Deprecated. |
String |
getTermAccession()
Get the (Optional) The accession number assigned to the ontology term in its source ontology. |
String |
getTermAccession(Database db)
Deprecated. |
String |
getValues(String sep)
Deprecated. |
String |
getXrefIdFieldName(String fieldName)
|
int |
hashCode()
|
static Query<? extends OntologyTerm> |
query(Database db)
Shorthand for db.query(OntologyTerm.class). |
void |
set(Tuple tuple,
boolean strict)
|
void |
setDefinition(String definition)
Set the (Optional) The definition of the term.. |
void |
setOntology_Id(Integer ontology_id)
Set foreign key for field ontology. |
void |
setOntology_Identifier(String ontology_Identifier)
Set a pretty label for cross reference Ontology to Ontology.Id. |
void |
setOntology(Integer ontology_id)
|
void |
setOntology(Ontology ontology)
Set the (Optional) The source ontology or controlled vocabulary list that ontology terms have been obtained from.. |
void |
setTermAccession(String termAccession)
Set the (Optional) The accession number assigned to the ontology term in its source ontology. |
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 ONTOLOGY
public static final String ONTOLOGY_IDENTIFIER
public static final String TERMACCESSION
public static final String DEFINITION
public static final String ID
| Constructor Detail |
|---|
public OntologyTerm()
public OntologyTerm(OntologyTerm copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends OntologyTerm> query(Database db)
public static List<? extends OntologyTerm> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static OntologyTerm findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static OntologyTerm findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseException
public static OntologyTerm findByOntologyTermAccession(Database db,
Integer ontology,
String termAccession)
throws DatabaseException
DatabaseExceptionpublic Ontology getOntology()
@Deprecated public Ontology getOntology(Database db)
public void setOntology(Ontology ontology)
ontology - public void setOntology_Id(Integer ontology_id)
public void setOntology(Integer ontology_id)
public Integer getOntology_Id()
public String getOntology_Identifier()
public void setOntology_Identifier(String ontology_Identifier)
public String getTermAccession()
@Deprecated public String getTermAccession(Database db)
public void setTermAccession(String termAccession)
termAccession - public String getDefinition()
@Deprecated public String getDefinition(Database db)
public void setDefinition(String definition)
definition - public Object get(String name)
get in interface Entityget in class Characteristic
public void validate()
throws DatabaseException
validate in interface Entityvalidate in class CharacteristicDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface Entityset in class CharacteristicExceptionpublic String toString()
toString in class Characteristicpublic String toString(boolean verbose)
toString in class Characteristicpublic Vector<String> getFields(boolean skipAutoIds)
getFields in interface EntitygetFields in class Characteristicpublic Vector<String> getFields()
getFields in interface EntitygetFields in class Characteristicpublic String getIdField()
getIdField in interface EntitygetIdField in class Characteristicpublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class Characteristic@Deprecated public String getFields(String sep)
getFields in interface EntitygetFields in class Characteristicpublic Object getIdValue()
getIdValue in interface EntitygetIdValue in class Characteristicpublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class Characteristic@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class Characteristic
public OntologyTerm create(Tuple tuple)
throws Exception
create in interface Entitycreate in class CharacteristicExceptionpublic boolean equals(Object obj)
equals in class Characteristicpublic int hashCode()
hashCode in class Characteristic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||