@Entity public class OntologyTerm extends Characteristic
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFINITION |
static String |
ID |
static String |
ONTOLOGY |
static String |
ONTOLOGY_IDENTIFIER |
static String |
TERMACCESSION |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
OntologyTerm() |
OntologyTerm(OntologyTerm copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
OntologyTerm |
create(Entity entity) |
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.
|
Collection<ObservableFeature> |
getDefinitionsObservableFeatureCollection() |
Collection<ObservableFeature> |
getDefinitionsObservableFeatureCollection(Database db) |
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(Entity entity,
boolean strict) |
void |
setDefinition(String definition)
Set the (Optional) The definition of the term..
|
void |
setDefinitionsObservableFeatureCollection(Collection<ObservableFeature> collection) |
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() |
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getDescription, getDescription, getId, getIdentifier, getIdentifier, getName, getName, getValueMrefValueCollection, getValueMrefValueCollection, set__Type, setDescription, setId, setIdentifier, setName, setValueMrefValueCollectiongetLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2dateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLabelValue, getValues, isReadonly, set, set, setReadonlypublic 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
public OntologyTerm()
public OntologyTerm(OntologyTerm copyMe) throws Exception
Exceptionpublic static Query<? extends OntologyTerm> query(Database db)
public static List<? extends OntologyTerm> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static OntologyTerm findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static OntologyTerm findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic 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 Characteristicpublic void validate()
throws DatabaseException
validate in interface Entityvalidate in class CharacteristicDatabaseExceptionpublic void set(Entity entity, 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 Characteristicpublic OntologyTerm create(Entity entity) throws Exception
create in interface Entitycreate in class CharacteristicExceptionpublic Collection<ObservableFeature> getDefinitionsObservableFeatureCollection()
public Collection<ObservableFeature> getDefinitionsObservableFeatureCollection(Database db)
public void setDefinitionsObservableFeatureCollection(Collection<ObservableFeature> collection)
public boolean equals(Object obj)
equals in class Characteristicpublic int hashCode()
hashCode in class CharacteristicCopyright © 2013. All Rights Reserved.