net.sf.basedb.core.data
Class BioMaterialEventSourceData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.BioMaterialEventSourceData
- All Implemented Interfaces:
- IdentifiableData
public class BioMaterialEventSourceData
- extends BasicData
Data class for holding information about a parent biomaterial
that was used in an event that created a child biomaterial or
a physical bioassay. Each event may only include the same parent
biomaterial once.
- Since:
- 3.0
- Author:
- Nicklas
- See Also:
- Developer documentation: Biomaterials LIMS
- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (Fri, 21 Oct 2011) $
- Hibernate: class
- table="`BioMaterialEventSources2`" lazy="true"
bioMaterial
private BioMaterialData bioMaterial
event
private BioMaterialEventData event
usedQuantity
private Float usedQuantity
position
private int position
BioMaterialEventSourceData
public BioMaterialEventSourceData()
getBioMaterial
public BioMaterialData getBioMaterial()
- Get the parent biomaterial that was used in the event.
- Hibernate: column
- name="`biomaterial_id`" not-null="true" unique-key="uniqueparent"
- Hibernate: many-to-one
- outer-join="false" update="false"
setBioMaterial
public void setBioMaterial(BioMaterialData bioMaterial)
getEvent
public BioMaterialEventData getEvent()
- Get the event that created something from the parent biomaterial.
- Hibernate: column
- name="`event_id`" not-null="true" unique-key="uniqueparent"
- Hibernate: many-to-one
- outer-join="false" update="false"
setEvent
public void setEvent(BioMaterialEventData event)
getUsedQuantity
public Float getUsedQuantity()
- Get the used quantity from the parent biomaterial. This is only
meaningful if the parent is a
MeasuredBioMaterialData
and
is ignored otherwise.
- Hibernate: property
- column="`used_quantity`" not-null="false" type="float"
setUsedQuantity
public void setUsedQuantity(Float usedQuantity)
getPosition
public int getPosition()
- Get the position of the parent biomaterial as it was used in the event.
The meaning of this depends on the type of event. Some events may not
use this at all. Multiple parent items may use the same position.
- Hibernate: property
- column="`position`" type="int" not-null="true"
setPosition
public void setPosition(int position)