|
||||||||||
| 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.ObservableFeature
@Entity public class ObservableFeature
ObservableFeature: ObservableFeature defines anything that can be observed.
In other words, ObservableFeature are the questions asked, e.g. 'What is Height?', 'What is Systolic blood pressure?', or 'Has blue eyes?'. Some questions may be repeated for multiple characteristics. For example 'What is [MarkerAllele] observed?' can be applied to all elements of a MarkerSet, and 'What is [medicin codes] uses' can be applied to a set of Medicine codes. This can be specified using the measuredCharacteristic field. The identifier of ObservableFeature is globally unique. It is recommended that each ObservableFeature is named according to a well-defined ontology term or database accession. .
| Field Summary | |
|---|---|
static String |
DATATYPE
|
static String |
DEFINITION
|
static String |
DEFINITION_IDENTIFIER
|
static String |
ID
|
static String |
TEMPORAL
|
static String |
UNIT
|
static String |
UNIT_IDENTIFIER
|
| Fields inherited from class org.molgenis.omx.observ.Characteristic |
|---|
__TYPE, DESCRIPTION, IDENTIFIER, NAME |
| Constructor Summary | |
|---|---|
ObservableFeature()
|
|
ObservableFeature(ObservableFeature copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
ObservableFeature |
create(Tuple tuple)
|
boolean |
equals(Object obj)
|
static List<? extends ObservableFeature> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(ObservableFeature.class, org.molgenis.framework.db.QueryRule ... |
static ObservableFeature |
findById(Database db,
Integer id)
|
static ObservableFeature |
findByIdentifier(Database db,
String identifier)
|
Object |
get(String name)
Generic getter. |
String |
getDataType()
Get the (Optional) Reference to the technical data type. |
String |
getDataType(Database db)
Deprecated. |
String |
getDataTypeLabel()
Get tha label for enum DataType. |
List<ValueLabel> |
getDataTypeOptions()
DataType is enum. |
Integer |
getDefinition_Id()
|
String |
getDefinition_Identifier()
Get a pretty label Identifier for cross reference Definition to OntologyTerm.Id. |
OntologyTerm |
getDefinition()
Get the The concept that is being measured in a specific way.. |
OntologyTerm |
getDefinition(Database db)
Deprecated. |
Collection<Protocol> |
getFeaturesProtocolCollection()
|
Collection<Protocol> |
getFeaturesProtocolCollection(Database db)
|
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of ObservableFeature. |
String |
getFields(String sep)
Deprecated. |
String |
getIdField()
|
Object |
getIdValue()
|
List<String> |
getLabelFields()
|
Boolean |
getTemporal()
Get the Whether this feature is time dependent and can have different values when measured on different times (e.g. |
Boolean |
getTemporal(Database db)
Deprecated. |
Integer |
getUnit_Id()
|
String |
getUnit_Identifier()
Get a pretty label Identifier for cross reference Unit to OntologyTerm.Id. |
OntologyTerm |
getUnit()
Get the (Optional) Reference to the well-defined measurement unit used to observe this feature (if feature is that concrete). |
OntologyTerm |
getUnit(Database db)
Deprecated. |
String |
getValues(String sep)
Deprecated. |
String |
getXrefIdFieldName(String fieldName)
|
int |
hashCode()
|
static Query<? extends ObservableFeature> |
query(Database db)
Shorthand for db.query(ObservableFeature.class). |
void |
set(Tuple tuple,
boolean strict)
|
void |
setDataType(String dataType)
Set the (Optional) Reference to the technical data type. |
void |
setDefinition_Id(Integer definition_id)
Set foreign key for field definition. |
void |
setDefinition_Identifier(String definition_Identifier)
Set a pretty label for cross reference Definition to OntologyTerm.Id. |
void |
setDefinition(Integer definition_id)
|
void |
setDefinition(OntologyTerm definition)
Set the The concept that is being measured in a specific way.. |
void |
setFeaturesProtocolCollection(Collection<Protocol> collection)
|
void |
setTemporal(Boolean temporal)
Set the Whether this feature is time dependent and can have different values when measured on different times (e.g. |
void |
setUnit_Id(Integer unit_id)
Set foreign key for field unit. |
void |
setUnit_Identifier(String unit_Identifier)
Set a pretty label for cross reference Unit to OntologyTerm.Id. |
void |
setUnit(Integer unit_id)
|
void |
setUnit(OntologyTerm unit)
Set the (Optional) Reference to the well-defined measurement unit used to observe this feature (if feature is that concrete). |
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 UNIT
public static final String UNIT_IDENTIFIER
public static final String DEFINITION
public static final String DEFINITION_IDENTIFIER
public static final String DATATYPE
public static final String TEMPORAL
public static final String ID
| Constructor Detail |
|---|
public ObservableFeature()
public ObservableFeature(ObservableFeature copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends ObservableFeature> query(Database db)
public static List<? extends ObservableFeature> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static ObservableFeature findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static ObservableFeature findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseExceptionpublic OntologyTerm getUnit()
@Deprecated public OntologyTerm getUnit(Database db)
public void setUnit(OntologyTerm unit)
unit - public void setUnit_Id(Integer unit_id)
public void setUnit(Integer unit_id)
public Integer getUnit_Id()
public String getUnit_Identifier()
public void setUnit_Identifier(String unit_Identifier)
public OntologyTerm getDefinition()
@Deprecated public OntologyTerm getDefinition(Database db)
public void setDefinition(OntologyTerm definition)
definition - public void setDefinition_Id(Integer definition_id)
public void setDefinition(Integer definition_id)
public Integer getDefinition_Id()
public String getDefinition_Identifier()
public void setDefinition_Identifier(String definition_Identifier)
public String getDataType()
@Deprecated public String getDataType(Database db)
public void setDataType(String dataType)
dataType - public String getDataTypeLabel()
public List<ValueLabel> getDataTypeOptions()
public Boolean getTemporal()
@Deprecated public Boolean getTemporal(Database db)
public void setTemporal(Boolean temporal)
temporal - 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 ObservableFeature create(Tuple tuple)
throws Exception
create in interface Entitycreate in class CharacteristicExceptionpublic Collection<Protocol> getFeaturesProtocolCollection()
public Collection<Protocol> getFeaturesProtocolCollection(Database db)
public void setFeaturesProtocolCollection(Collection<Protocol> collection)
public 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 | |||||||||