3.2.4: 2013-12-06

net.sf.basedb.core.data
Class BioMaterialEventSourceData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by 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"

Field Summary
private  BioMaterialData bioMaterial
           
private  BioMaterialEventData event
           
private  int position
           
private  Float usedQuantity
           
 
Constructor Summary
BioMaterialEventSourceData()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bioMaterial

private BioMaterialData bioMaterial

event

private BioMaterialEventData event

usedQuantity

private Float usedQuantity

position

private int position
Constructor Detail

BioMaterialEventSourceData

public BioMaterialEventSourceData()
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="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)

3.2.4: 2013-12-06