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
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:
- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`BioMaterialEventSources2`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate BioMaterialData
private BioMaterialEventData
private int
private Float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the parent biomaterial that was used in the event.getEvent()
Get the event that created something from the parent biomaterial.int
Get the position of the parent biomaterial as it was used in the event.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 Details
-
bioMaterial
-
event
-
usedQuantity
-
position
private int position
-
-
Constructor Details
-
BioMaterialEventSourceData
public BioMaterialEventSourceData()
-
-
Method Details
-
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
-
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
-
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
-
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)
-