|
||||||||||
| 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.ngs.Sample
@Entity public class Sample
Sample: A Sample bundles information about a sample. Sample can be pooled. A pooled sample is just another sample, but with a additional mref (many to many) linking to the samples inside the pool..
| Field Summary | |
|---|---|
static String |
ARRAYFILE
|
static String |
ARRAYID
|
static String |
CAPTURINGKIT
|
static String |
CAPTURINGKIT_CAPTURINGKITNAME
|
static String |
EXTERNALID
|
static String |
ID
|
static String |
INTERNALID
|
static String |
LABSTATUS
|
static String |
PROJECTID
|
static String |
PROJECTID_PROJECTNAME
|
static String |
SAMPLEBARCODE
|
static String |
SAMPLEBARCODE_SAMPLEBARCODENAME
|
static String |
SAMPLECOMMENT
|
static String |
SAMPLEINPOOL
|
static String |
SAMPLEINPOOL_INTERNALID
|
| Constructor Summary | |
|---|---|
Sample()
|
|
Sample(Sample copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
Sample |
create(Tuple tuple)
|
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 |
findByInternalId(Database db,
String internalId)
|
Object |
get(String name)
Generic getter. |
String |
getArrayFile()
Get the Location of arrayfile for the sample in this lane-barcode. |
String |
getArrayFile(Database db)
Deprecated. |
String |
getArrayId()
Get the ID of the sample on the arrayFile. |
String |
getArrayId(Database db)
Deprecated. |
String |
getCapturingKit_CapturingKitName()
Get a pretty label CapturingKitName for cross reference CapturingKit to CapturingKit.Id. |
Integer |
getCapturingKit_Id()
|
CapturingKit |
getCapturingKit()
Get the Capturing kit used.. |
CapturingKit |
getCapturingKit(Database db)
Deprecated. |
String |
getExternalId()
Get the The name of a sample as known by the customer. |
String |
getExternalId(Database db)
Deprecated. |
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of Sample. |
String |
getFields(String sep)
Deprecated. |
Integer |
getId()
Get the automatically generated internal id, only for internal use.. |
String |
getIdField()
|
Object |
getIdValue()
|
String |
getInternalId()
Get the The number of a sample as used in-house. |
String |
getInternalId(Database db)
Deprecated. |
List<String> |
getLabelFields()
|
String |
getLabStatus()
Get the Lab status phase of this sample. |
String |
getLabStatus(Database db)
Deprecated. |
String |
getLabStatusLabel()
Get tha label for enum LabStatus. |
List<ValueLabel> |
getLabStatusOptions()
LabStatus is enum. |
Integer |
getProjectId_Id()
|
String |
getProjectId_ProjectName()
Get a pretty label ProjectName for cross reference ProjectId to Project.Id. |
Project |
getProjectId()
Get the the sample that this sample is part of. |
Project |
getProjectId(Database db)
Deprecated. |
Integer |
getSampleBarcode_Id()
|
String |
getSampleBarcode_SampleBarcodeName()
Get a pretty label SampleBarcodeName for cross reference SampleBarcode to SampleBarcode.Id. |
SampleBarcode |
getSampleBarcode()
Get the Multiple samples can be on one flowcell using barcodes.. |
SampleBarcode |
getSampleBarcode(Database db)
Deprecated. |
String |
getSampleComment()
Get the Comments about the sample. |
String |
getSampleComment(Database db)
Deprecated. |
List<Integer> |
getSampleInPool_Id()
|
List<String> |
getSampleInPool_InternalId()
Get a pretty label for cross reference SampleInPool to Sample.Id. |
List<Sample> |
getSampleInPool()
Get the List of samples inside the pool. |
List<Sample> |
getSampleInPool(Database db)
Deprecated. |
Collection<Sample> |
getSampleInPoolSampleCollection()
|
Collection<Sample> |
getSampleInPoolSampleCollection(Database db)
|
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(Tuple tuple,
boolean strict)
|
void |
setArrayFile(String arrayFile)
Set the Location of arrayfile for the sample in this lane-barcode. |
void |
setArrayId(String arrayId)
Set the ID of the sample on the arrayFile. |
void |
setCapturingKit_CapturingKitName(String capturingKit_CapturingKitName)
Set a pretty label for cross reference CapturingKit to CapturingKit.Id. |
void |
setCapturingKit_Id(Integer capturingKit_id)
Set foreign key for field capturingKit. |
void |
setCapturingKit(CapturingKit capturingKit)
Set the Capturing kit used.. |
void |
setCapturingKit(Integer capturingKit_id)
|
void |
setExternalId(String externalId)
Set the The name of a sample as known by the customer. |
void |
setId(Integer id)
Set the automatically generated internal id, only for internal use.. |
void |
setInternalId(String internalId)
Set the The number of a sample as used in-house. |
void |
setLabStatus(String labStatus)
Set the Lab status phase of this sample. |
void |
setProjectId_Id(Integer projectId_id)
Set foreign key for field projectId. |
void |
setProjectId_ProjectName(String projectId_ProjectName)
Set a pretty label for cross reference ProjectId to Project.Id. |
void |
setProjectId(Integer projectId_id)
|
void |
setProjectId(Project projectId)
Set the the sample that this sample is part of. |
void |
setSampleBarcode_Id(Integer sampleBarcode_id)
Set foreign key for field sampleBarcode. |
void |
setSampleBarcode_SampleBarcodeName(String sampleBarcode_SampleBarcodeName)
Set a pretty label for cross reference SampleBarcode to SampleBarcode.Id. |
void |
setSampleBarcode(Integer sampleBarcode_id)
|
void |
setSampleBarcode(SampleBarcode sampleBarcode)
Set the Multiple samples can be on one flowcell using barcodes.. |
void |
setSampleComment(String sampleComment)
Set the Comments about the sample. |
void |
setSampleInPool_Id(Integer... sampleInPool)
|
void |
setSampleInPool_Id(List<Integer> sampleInPool_id)
Set foreign key for field sampleInPool. |
void |
setSampleInPool_InternalId(List<String> sampleInPool_InternalId)
Update the foreign key SampleInPool This sets sampleInPool to null until next database transaction. |
void |
setSampleInPool(List<Sample> sampleInPool)
Set the List of samples inside the pool. |
void |
setSampleInPool(Sample... sampleInPool)
|
void |
setSampleInPoolSampleCollection(Collection<Sample> collection)
|
String |
toString()
|
String |
toString(boolean verbose)
|
void |
validate()
|
| Methods inherited from class org.molgenis.util.AbstractEntity |
|---|
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, 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 ID
public static final String INTERNALID
public static final String EXTERNALID
public static final String SAMPLECOMMENT
public static final String PROJECTID
public static final String PROJECTID_PROJECTNAME
public static final String ARRAYFILE
public static final String ARRAYID
public static final String CAPTURINGKIT
public static final String CAPTURINGKIT_CAPTURINGKITNAME
public static final String SAMPLEBARCODE
public static final String SAMPLEBARCODE_SAMPLEBARCODENAME
public static final String SAMPLEINPOOL
public static final String SAMPLEINPOOL_INTERNALID
public static final String LABSTATUS
| Constructor Detail |
|---|
public Sample()
public Sample(Sample copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends Sample> query(Database db)
public static List<? extends Sample> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static Sample findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static Sample findByInternalId(Database db,
String internalId)
throws DatabaseException
DatabaseExceptionpublic Integer getId()
getId in interface Autoidpublic void setId(Integer id)
setId in interface Autoidid - public String getInternalId()
@Deprecated public String getInternalId(Database db)
public void setInternalId(String internalId)
internalId - public String getExternalId()
@Deprecated public String getExternalId(Database db)
public void setExternalId(String externalId)
externalId - public String getSampleComment()
@Deprecated public String getSampleComment(Database db)
public void setSampleComment(String sampleComment)
sampleComment - public Project getProjectId()
@Deprecated public Project getProjectId(Database db)
public void setProjectId(Project projectId)
projectId - public void setProjectId_Id(Integer projectId_id)
public void setProjectId(Integer projectId_id)
public Integer getProjectId_Id()
public String getProjectId_ProjectName()
public void setProjectId_ProjectName(String projectId_ProjectName)
public String getArrayFile()
@Deprecated public String getArrayFile(Database db)
public void setArrayFile(String arrayFile)
arrayFile - public String getArrayId()
@Deprecated public String getArrayId(Database db)
public void setArrayId(String arrayId)
arrayId - public CapturingKit getCapturingKit()
@Deprecated public CapturingKit getCapturingKit(Database db)
public void setCapturingKit(CapturingKit capturingKit)
capturingKit - public void setCapturingKit_Id(Integer capturingKit_id)
public void setCapturingKit(Integer capturingKit_id)
public Integer getCapturingKit_Id()
public String getCapturingKit_CapturingKitName()
public void setCapturingKit_CapturingKitName(String capturingKit_CapturingKitName)
public SampleBarcode getSampleBarcode()
@Deprecated public SampleBarcode getSampleBarcode(Database db)
public void setSampleBarcode(SampleBarcode sampleBarcode)
sampleBarcode - public void setSampleBarcode_Id(Integer sampleBarcode_id)
public void setSampleBarcode(Integer sampleBarcode_id)
public Integer getSampleBarcode_Id()
public String getSampleBarcode_SampleBarcodeName()
public void setSampleBarcode_SampleBarcodeName(String sampleBarcode_SampleBarcodeName)
public List<Sample> getSampleInPool()
@Deprecated public List<Sample> getSampleInPool(Database db)
public void setSampleInPool(List<Sample> sampleInPool)
sampleInPool - public void setSampleInPool_Id(Integer... sampleInPool)
public void setSampleInPool(Sample... sampleInPool)
public void setSampleInPool_Id(List<Integer> sampleInPool_id)
public List<Integer> getSampleInPool_Id()
public List<String> getSampleInPool_InternalId()
public void setSampleInPool_InternalId(List<String> sampleInPool_InternalId)
public String getLabStatus()
@Deprecated public String getLabStatus(Database db)
public void setLabStatus(String labStatus)
labStatus - public String getLabStatusLabel()
public List<ValueLabel> getLabStatusOptions()
public Object get(String name)
get in interface Entity
public void validate()
throws DatabaseException
validate in interface EntityDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface EntityExceptionpublic String toString()
toString in class Objectpublic String toString(boolean verbose)
public Vector<String> getFields(boolean skipAutoIds)
getFields in interface Entitypublic Vector<String> getFields()
getFields in interface Entitypublic String getIdField()
getIdField in interface Entitypublic List<String> getLabelFields()
getLabelFields in interface Entity@Deprecated public String getFields(String sep)
getFields in interface Entitypublic 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 AbstractEntity
public Sample create(Tuple tuple)
throws Exception
create in interface EntityExceptionpublic Collection<Sample> getSampleInPoolSampleCollection()
public Collection<Sample> getSampleInPoolSampleCollection(Database db)
public void setSampleInPoolSampleCollection(Collection<Sample> collection)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||