Package net.sf.basedb.core.data
Class WellData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.WellData
-
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
public class WellData extends BasicData implements AnnotatableData
This class holds information about a well on a plate.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
Well
, Developer documentation: Array LIMS (plates)- Last modified
- $Date: 2016-04-27 08:38:21 +0200 (on, 27 apr 2016) $
- Hibernate: class
- table="`Wells`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationSetData
annotationSet
private int
column
private Set<AnnotationLink>
links
private WellData
parent
private PlateData
plate
private ReporterData
reporter
private int
row
-
Constructor Summary
Constructors Constructor Description WellData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AnnotationLink>
getAnnotations()
Short-cut to all annotations belonging to this item.AnnotationSetData
getAnnotationSet()
Get the annotation set that holds the annotations for an item.int
getColumn()
The column coordinate of this well.WellData
getParent()
If the plate was created from aPlateMappingData
this property points to the well on the source plate used in the mapping.PlateData
getPlate()
The plate this well belongs to.ReporterData
getReporter()
The reporter used in this well.int
getRow()
The row coordinate of this well.(package private) void
setAnnotations(Set<AnnotationLink> links)
void
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set.void
setColumn(int column)
void
setParent(WellData parent)
void
setPlate(PlateData plate)
void
setReporter(ReporterData reporter)
void
setRow(int row)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
-
-
-
-
Field Detail
-
annotationSet
private AnnotationSetData annotationSet
-
links
private Set<AnnotationLink> links
-
plate
private PlateData plate
-
row
private int row
-
column
private int column
-
parent
private WellData parent
-
reporter
private ReporterData reporter
-
-
Method Detail
-
getAnnotationSet
public AnnotationSetData getAnnotationSet()
Description copied from interface:AnnotatableData
Get the annotation set that holds the annotations for an item.- Specified by:
getAnnotationSet
in interfaceAnnotatableData
- Returns:
- An
AnnotationSetData
item or null if no annotations exist
-
setAnnotationSet
public void setAnnotationSet(AnnotationSetData annotationSet)
Description copied from interface:AnnotatableData
Change the annotation set. Use null to remove the annotations.- Specified by:
setAnnotationSet
in interfaceAnnotatableData
- Parameters:
annotationSet
- Annotation set to change to.
-
getAnnotations
public Set<AnnotationLink> getAnnotations()
Description copied from interface:AnnotatableData
Short-cut to all annotations belonging to this item. Used for HQL queries only. This is the inverse end. NOTE! The property-ref="annotationSet" require that AnnotationSetData implements Serializable- Specified by:
getAnnotations
in interfaceAnnotatableData
-
setAnnotations
void setAnnotations(Set<AnnotationLink> links)
-
getPlate
public PlateData getPlate()
The plate this well belongs to.- See Also:
PlateData.getWells()
- Hibernate: many-to-one
- column="`plate_id`" not-null="true" outer-join="false" update="false"
-
setPlate
public void setPlate(PlateData plate)
-
getRow
public int getRow()
The row coordinate of this well.- Hibernate: property
- column="`row`" type="int" not-null="true" update="false"
-
setRow
public void setRow(int row)
-
getColumn
public int getColumn()
The column coordinate of this well.- Hibernate: property
- column="`column`" type="int" not-null="true" update="false"
-
setColumn
public void setColumn(int column)
-
getParent
public WellData getParent()
If the plate was created from aPlateMappingData
this property points to the well on the source plate used in the mapping.- See Also:
PlateMappingData.getDetails()
- Hibernate: many-to-one
- column="`parent_id`" not-null="false" outer-join="false" update="false"
-
setParent
public void setParent(WellData parent)
-
getReporter
public ReporterData getReporter()
The reporter used in this well.- Hibernate: many-to-one
- column="`reporter_id`" not-null="false" outer-join="false" update="false"
-
setReporter
public void setReporter(ReporterData reporter)
-
-