@Entity public class ObservationSet extends AbstractEntity implements Autoid
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
IDENTIFIER |
static String |
PARTOFDATASET |
static String |
PARTOFDATASET_IDENTIFIER |
static String |
TIME |
| Constructor and Description |
|---|
ObservationSet() |
ObservationSet(ObservationSet copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
ObservationSet |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends ObservationSet> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(ObservationSet.class, org.molgenis.framework.db.QueryRule ...
|
static ObservationSet |
findById(Database db,
Integer id) |
static ObservationSet |
findByIdentifier(Database db,
String identifier) |
static ObservationSet |
findByPartOfDataSetTime(Database db,
Integer partOfDataSet,
Date time) |
Object |
get(String name)
Generic getter.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of ObservationSet.
|
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() |
Integer |
getPartOfDataSet_Id() |
String |
getPartOfDataSet_Identifier()
Get a pretty label Identifier for cross reference PartOfDataSet to DataSet.Id.
|
DataSet |
getPartOfDataSet()
Get the DataSet this ValueSet is part of..
|
DataSet |
getPartOfDataSet(Database db)
Deprecated.
|
Date |
getTime()
Get the Time of this observationSet.
|
Date |
getTime(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends ObservationSet> |
query(Database db)
Shorthand for db.query(ObservationSet.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 |
setPartOfDataSet_Id(Integer partOfDataSet_id)
Set foreign key for field partOfDataSet.
|
void |
setPartOfDataSet_Identifier(String partOfDataSet_Identifier)
Set a pretty label for cross reference PartOfDataSet to DataSet.Id.
|
void |
setPartOfDataSet(DataSet partOfDataSet)
Set the DataSet this ValueSet is part of..
|
void |
setPartOfDataSet(Integer partOfDataSet_id) |
void |
setTime(Date time)
Set the Time of this observationSet.
|
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 PARTOFDATASET
public static final String PARTOFDATASET_IDENTIFIER
public static final String TIME
public ObservationSet()
public ObservationSet(ObservationSet copyMe) throws Exception
Exceptionpublic static Query<? extends ObservationSet> query(Database db)
public static List<? extends ObservationSet> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static ObservationSet findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static ObservationSet findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic static ObservationSet findByPartOfDataSetTime(Database db, Integer partOfDataSet, Date time) throws DatabaseException
DatabaseExceptionpublic Integer getId()
public void setId(Integer id)
public String getIdentifier()
@Deprecated public String getIdentifier(Database db)
public void setIdentifier(String identifier)
identifier - public DataSet getPartOfDataSet()
@Deprecated public DataSet getPartOfDataSet(Database db)
public void setPartOfDataSet(DataSet partOfDataSet)
partOfDataSet - public void setPartOfDataSet_Id(Integer partOfDataSet_id)
public void setPartOfDataSet(Integer partOfDataSet_id)
public Integer getPartOfDataSet_Id()
public String getPartOfDataSet_Identifier()
public void setPartOfDataSet_Identifier(String partOfDataSet_Identifier)
public Date getTime()
@Deprecated public Date getTime(Database db)
public void setTime(Date time)
time - 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 AbstractEntitypublic ObservationSet create(Entity entity) throws Exception
Copyright © 2013. All Rights Reserved.