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:
Last modified
$Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
Hibernate: class
table="`BioMaterialEventSources2`" lazy="true"
  • Field Details

  • Constructor Details

    • BioMaterialEventSourceData

      public BioMaterialEventSourceData()
  • Method Details

    • 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 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)