Package 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: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`BioMaterialEventSources2`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private BioMaterialData
bioMaterial
private BioMaterialEventData
event
private int
position
private Float
usedQuantity
-
Constructor Summary
Constructors Constructor Description BioMaterialEventSourceData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BioMaterialData
getBioMaterial()
Get the parent biomaterial that was used in the event.BioMaterialEventData
getEvent()
Get the event that created something from the parent biomaterial.int
getPosition()
Get the position of the parent biomaterial as it was used in the event.Float
getUsedQuantity()
Get the used quantity from the parent biomaterial.void
setBioMaterial(BioMaterialData bioMaterial)
void
setEvent(BioMaterialEventData event)
void
setPosition(int position)
void
setUsedQuantity(Float usedQuantity)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
-
-
-
Field Detail
-
bioMaterial
private BioMaterialData bioMaterial
-
event
private BioMaterialEventData event
-
usedQuantity
private Float usedQuantity
-
position
private int position
-
-
Method Detail
-
getBioMaterial
public BioMaterialData getBioMaterial()
Get the parent biomaterial that was used in the event.- Hibernate: column
- name="`biomaterial_id`" not-null="true" unique-key="BioMaterialEventSource_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="BioMaterialEventSource_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 aMeasuredBioMaterialData
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)
-
-