@Entity public class Ontology extends AbstractEntity implements Identifiable
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
IDENTIFIER |
static String |
NAME |
static String |
ONTOLOGYACCESSION |
static String |
ONTOLOGYURI |
| Constructor and Description |
|---|
Ontology() |
Ontology(Ontology copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
Ontology |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends Ontology> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Ontology.class, org.molgenis.framework.db.QueryRule ...
|
static Ontology |
findById(Database db,
Integer id) |
static Ontology |
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 Ontology.
|
String |
getFields(String sep)
Deprecated.
|
Integer |
getId()
Get the automatically generated internal id, only for internal use..
|
String |
getIdentifier()
Get the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
|
String |
getIdentifier(Database db)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
String |
getName()
Get the human readible name, not necessary unique..
|
String |
getName(Database db)
Deprecated.
|
String |
getOntologyAccession()
Get the A accession that uniquely identifies the ontology (typically an acronym).
|
String |
getOntologyAccession(Database db)
Deprecated.
|
String |
getOntologyURI()
Get the (Optional) A URI that references the location of the ontology..
|
String |
getOntologyURI(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends Ontology> |
query(Database db)
Shorthand for db.query(Ontology.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setId(Integer id)
Set the automatically generated internal id, only for internal use..
|
void |
setIdentifier(String identifier)
Set the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
|
void |
setName(String name)
Set the human readible name, not necessary unique..
|
void |
setOntologyAccession(String ontologyAccession)
Set the A accession that uniquely identifies the ontology (typically an acronym).
|
void |
setOntologyURI(String ontologyURI)
Set the (Optional) A URI that references the location of the ontology..
|
String |
toString() |
String |
toString(boolean verbose) |
void |
validate() |
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, set, set, setReadonly, setValuesFromString, string2dateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLabelValue, getValues, isReadonly, set, set, setReadonlypublic static final String ID
public static final String IDENTIFIER
public static final String NAME
public static final String ONTOLOGYACCESSION
public static final String ONTOLOGYURI
public static Query<? extends Ontology> query(Database db)
public static List<? extends Ontology> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static Ontology findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static Ontology findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic Integer getId()
public void setId(Integer id)
public String getIdentifier()
getIdentifier in interface Identifiable@Deprecated public String getIdentifier(Database db)
public void setIdentifier(String identifier)
setIdentifier in interface Identifiableidentifier - public String getName()
getName in interface Identifiable@Deprecated public String getName(Database db)
public void setName(String name)
setName in interface Identifiablename - public String getOntologyAccession()
@Deprecated public String getOntologyAccession(Database db)
public void setOntologyAccession(String ontologyAccession)
ontologyAccession - public String getOntologyURI()
@Deprecated public String getOntologyURI(Database db)
public void setOntologyURI(String ontologyURI)
ontologyURI - public void validate()
throws DatabaseException
validate in interface EntityDatabaseExceptionpublic String toString(boolean verbose)
public Vector<String> getFields(boolean skipAutoIds)
public String getIdField()
getIdField in interface Entitypublic List<String> getLabelFields()
getLabelFields in interface Entity@Deprecated public String getFields(String sep)
public Object getIdValue()
getIdValue in interface Entitypublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface Entity@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class AbstractEntityCopyright © 2013. All Rights Reserved.