@Entity public class ObservableFeature extends Characteristic
| Modifier and Type | Field and Description |
|---|---|
static String |
DATATYPE |
static String |
DEFINITIONS |
static String |
DEFINITIONS_IDENTIFIER |
static String |
ID |
static String |
TEMPORAL |
static String |
UNIT |
static String |
UNIT_IDENTIFIER |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
ObservableFeature() |
ObservableFeature(ObservableFeature copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
ObservableFeature |
create(Entity entity) |
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.
|
List<Integer> |
getDefinitions_Id() |
List<String> |
getDefinitions_Identifier()
Get a pretty label for cross reference Definitions to OntologyTerm.Id.
|
List<OntologyTerm> |
getDefinitions()
Get the The concept that is being measured in a specific way..
|
List<OntologyTerm> |
getDefinitions(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() |
Collection<Protocol> |
getRequiredFeaturesProtocolCollection() |
Collection<Protocol> |
getRequiredFeaturesProtocolCollection(Database db) |
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(Entity entity,
boolean strict) |
void |
setDataType(String dataType)
Set the (Optional) Reference to the technical data type.
|
void |
setDefinitions_Id(Integer... definitions) |
void |
setDefinitions_Id(List<Integer> definitions_id)
Set foreign key for field definitions.
|
void |
setDefinitions_Identifier(List<String> definitions_Identifier)
Update the foreign key Definitions
This sets definitions to null until next database transaction.
|
void |
setDefinitions(List<OntologyTerm> definitions)
Set the The concept that is being measured in a specific way..
|
void |
setDefinitions(OntologyTerm... definitions) |
void |
setFeaturesProtocolCollection(Collection<Protocol> collection) |
void |
setRequiredFeaturesProtocolCollection(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() |
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 UNIT
public static final String UNIT_IDENTIFIER
public static final String DEFINITIONS
public static final String DEFINITIONS_IDENTIFIER
public static final String DATATYPE
public static final String TEMPORAL
public static final String ID
public ObservableFeature()
public ObservableFeature(ObservableFeature copyMe) throws Exception
Exceptionpublic static Query<? extends ObservableFeature> query(Database db)
public static List<? extends ObservableFeature> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static ObservableFeature findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic 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 List<OntologyTerm> getDefinitions()
@Deprecated public List<OntologyTerm> getDefinitions(Database db)
public void setDefinitions(List<OntologyTerm> definitions)
definitions - public void setDefinitions_Id(Integer... definitions)
public void setDefinitions(OntologyTerm... definitions)
public void setDefinitions_Id(List<Integer> definitions_id)
public List<String> getDefinitions_Identifier()
public void setDefinitions_Identifier(List<String> definitions_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 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 ObservableFeature create(Entity entity) 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 Collection<Protocol> getRequiredFeaturesProtocolCollection()
public Collection<Protocol> getRequiredFeaturesProtocolCollection(Database db)
public void setRequiredFeaturesProtocolCollection(Collection<Protocol> collection)
public boolean equals(Object obj)
equals in class Characteristicpublic int hashCode()
hashCode in class CharacteristicCopyright © 2013. All Rights Reserved.