@Entity public class Sample extends ObservationTarget
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
INDIVIDUAL |
static String |
INDIVIDUAL_IDENTIFIER |
static String |
TISSUE |
static String |
TISSUE_IDENTIFIER |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
Sample() |
Sample(Sample copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
Sample |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends Sample> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Sample.class, org.molgenis.framework.db.QueryRule ...
|
static Sample |
findById(Database db,
Integer id) |
static Sample |
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 Sample.
|
String |
getFields(String sep)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
Integer |
getIndividual_Id() |
String |
getIndividual_Identifier()
Get a pretty label Identifier for cross reference Individual to Individual.Id.
|
Individual |
getIndividual()
Get the The individual from which this sample was taken..
|
Individual |
getIndividual(Database db)
Deprecated.
|
List<String> |
getLabelFields() |
Integer |
getTissue_Id() |
String |
getTissue_Identifier()
Get a pretty label Identifier for cross reference Tissue to OntologyTerm.Id.
|
OntologyTerm |
getTissue()
Get the The tissue from which this sample was taken..
|
OntologyTerm |
getTissue(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends Sample> |
query(Database db)
Shorthand for db.query(Sample.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setIndividual_Id(Integer individual_id)
Set foreign key for field individual.
|
void |
setIndividual_Identifier(String individual_Identifier)
Set a pretty label for cross reference Individual to Individual.Id.
|
void |
setIndividual(Individual individual)
Set the The individual from which this sample was taken..
|
void |
setIndividual(Integer individual_id) |
void |
setTissue_Id(Integer tissue_id)
Set foreign key for field tissue.
|
void |
setTissue_Identifier(String tissue_Identifier)
Set a pretty label for cross reference Tissue to OntologyTerm.Id.
|
void |
setTissue(Integer tissue_id) |
void |
setTissue(OntologyTerm tissue)
Set the The tissue from which this sample was taken..
|
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 INDIVIDUAL
public static final String INDIVIDUAL_IDENTIFIER
public static final String TISSUE
public static final String TISSUE_IDENTIFIER
public static final String ID
public static Query<? extends Sample> query(Database db)
public static List<? extends Sample> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static Sample findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static Sample findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic Individual getIndividual()
@Deprecated public Individual getIndividual(Database db)
public void setIndividual(Individual individual)
individual - public void setIndividual_Id(Integer individual_id)
public void setIndividual(Integer individual_id)
public Integer getIndividual_Id()
public String getIndividual_Identifier()
public void setIndividual_Identifier(String individual_Identifier)
public OntologyTerm getTissue()
@Deprecated public OntologyTerm getTissue(Database db)
public void setTissue(OntologyTerm tissue)
tissue - public void setTissue_Id(Integer tissue_id)
public void setTissue(Integer tissue_id)
public Integer getTissue_Id()
public String getTissue_Identifier()
public void setTissue_Identifier(String tissue_Identifier)
public Object get(String name)
get in interface Entityget in class ObservationTargetpublic void validate()
throws DatabaseException
validate in interface Entityvalidate in class ObservationTargetDatabaseExceptionpublic void set(Entity entity, boolean strict) throws Exception
set in interface Entityset in class ObservationTargetExceptionpublic String toString()
toString in class ObservationTargetpublic String toString(boolean verbose)
toString in class ObservationTargetpublic Vector<String> getFields(boolean skipAutoIds)
getFields in interface EntitygetFields in class ObservationTargetpublic Vector<String> getFields()
getFields in interface EntitygetFields in class ObservationTargetpublic String getIdField()
getIdField in interface EntitygetIdField in class ObservationTargetpublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class ObservationTarget@Deprecated public String getFields(String sep)
getFields in interface EntitygetFields in class ObservationTargetpublic Object getIdValue()
getIdValue in interface EntitygetIdValue in class ObservationTargetpublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class ObservationTarget@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class ObservationTargetpublic Sample create(Entity entity) throws Exception
create in interface Entitycreate in class ObservationTargetExceptionpublic boolean equals(Object obj)
equals in class ObservationTargetpublic int hashCode()
hashCode in class ObservationTargetCopyright © 2013. All Rights Reserved.