@Entity public class DataSet extends Characteristic
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE |
static String |
ENDTIME |
static String |
ID |
static String |
PROTOCOLUSED |
static String |
PROTOCOLUSED_IDENTIFIER |
static String |
STARTTIME |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
DataSet() |
DataSet(DataSet copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
DataSet |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends DataSet> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(DataSet.class, org.molgenis.framework.db.QueryRule ...
|
static DataSet |
findById(Database db,
Integer id) |
static DataSet |
findByIdentifier(Database db,
String identifier) |
Object |
get(String name)
Generic getter.
|
Boolean |
getActive()
Get the whether this data set is considered active/inactive.
|
Boolean |
getActive(Database db)
Deprecated.
|
Date |
getEndTime()
Get the (Optional) time when the protocol ended..
|
Date |
getEndTime(Database db)
Deprecated.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of DataSet.
|
String |
getFields(String sep)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
Integer |
getProtocolUsed_Id() |
String |
getProtocolUsed_Identifier()
Get a pretty label Identifier for cross reference ProtocolUsed to Protocol.Id.
|
Protocol |
getProtocolUsed()
Get the Reference to the protocol that is being used (if available).
|
Protocol |
getProtocolUsed(Database db)
Deprecated.
|
Date |
getStartTime()
Get the time when the protocol started..
|
Date |
getStartTime(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends DataSet> |
query(Database db)
Shorthand for db.query(DataSet.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setActive(Boolean active)
Set the whether this data set is considered active/inactive.
|
void |
setEndTime(Date endTime)
Set the (Optional) time when the protocol ended..
|
void |
setProtocolUsed_Id(Integer protocolUsed_id)
Set foreign key for field protocolUsed.
|
void |
setProtocolUsed_Identifier(String protocolUsed_Identifier)
Set a pretty label for cross reference ProtocolUsed to Protocol.Id.
|
void |
setProtocolUsed(Integer protocolUsed_id) |
void |
setProtocolUsed(Protocol protocolUsed)
Set the Reference to the protocol that is being used (if available).
|
void |
setStartTime(Date startTime)
Set the time when the protocol started..
|
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 PROTOCOLUSED
public static final String PROTOCOLUSED_IDENTIFIER
public static final String STARTTIME
public static final String ENDTIME
public static final String ACTIVE
public static final String ID
public static Query<? extends DataSet> query(Database db)
public static List<? extends DataSet> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static DataSet findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static DataSet findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic Protocol getProtocolUsed()
@Deprecated public Protocol getProtocolUsed(Database db)
public void setProtocolUsed(Protocol protocolUsed)
protocolUsed - public void setProtocolUsed_Id(Integer protocolUsed_id)
public void setProtocolUsed(Integer protocolUsed_id)
public Integer getProtocolUsed_Id()
public String getProtocolUsed_Identifier()
public void setProtocolUsed_Identifier(String protocolUsed_Identifier)
public Date getStartTime()
@Deprecated public Date getStartTime(Database db)
public void setStartTime(Date startTime)
startTime - public Date getEndTime()
@Deprecated public Date getEndTime(Database db)
public void setEndTime(Date endTime)
endTime - public Boolean getActive()
@Deprecated public Boolean getActive(Database db)
public void setActive(Boolean active)
active - 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 DataSet create(Entity entity) throws Exception
create in interface Entitycreate in class CharacteristicExceptionpublic boolean equals(Object obj)
equals in class Characteristicpublic int hashCode()
hashCode in class CharacteristicCopyright © 2013. All Rights Reserved.