Last update: 2011-06-23

org.proteios.core.data
Class MeasuredBioMaterialData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.OwnedData
          extended by org.proteios.core.data.SharedData
              extended by org.proteios.core.data.CommonData
                  extended by org.proteios.core.data.AnnotatedData
                      extended by org.proteios.core.data.BioMaterialData
                          extended by org.proteios.core.data.MeasuredBioMaterialData
All Implemented Interfaces:
AnnotatableData, IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData
Direct Known Subclasses:
ExtractData, LabeledExtractData, MeasuredAreaData, SampleData

public abstract class MeasuredBioMaterialData
extends BioMaterialData

This class is the root class for measured biomaterials, ie biomaterials for where the quantity is tracked.

Version:
2.0
Author:
Nicklas
See Also:
MeasuredBioMaterial, Biomaterials overview
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
Hibernate: subclass
discriminator-value="-1" lazy="false"

Field Summary
 
Fields inherited from class org.proteios.core.data.BioMaterialData
MAX_EXTERNAL_ID_LENGTH, MAX_STORAGE_LOCATION_LENGTH
 
Fields inherited from interface org.proteios.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
MeasuredBioMaterialData()
           
 
Method Summary
 Float getConcentrationInGramsPerLiter()
          Get the concentration of the biomaterial.
 CreationEventData getCreationEvent()
           
 Set<BioMaterialEventData> getEvents()
          These are the events that have used this biomaterial.
 Float getOriginalQuantityInMicroLiters()
          Get the original quantity of the biomaterial measured in microliters.
 BioMaterialData getParent()
          Get the parent biomaterial.
 Float getRemainingQuantityInMicroLiters()
          Get the remaining quantity of the biomaterial measured in microliters.
 boolean isPooled()
          If the biomaterial was created by pooling other biomaterials of the same type or not.
 void setConcentrationInGramsPerLiter(Float concentration)
           
 void setCreationEvent(CreationEventData creationEvent)
           
 void setEvents(Set<BioMaterialEventData> events)
           
 void setOriginalQuantityInMicroLiters(Float originalQuantity)
           
 void setParent(BioMaterialData parent)
           
 void setPooled(boolean pooled)
           
 void setRemainingQuantityInMicroLiters(Float remainingQuantity)
           
 
Methods inherited from class org.proteios.core.data.BioMaterialData
getExternalId, getFiles, getStorageLocation, setExternalId, setFiles, setStorageLocation
 
Methods inherited from class org.proteios.core.data.AnnotatedData
getAnnotationSet, setAnnotationSet
 
Methods inherited from class org.proteios.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class org.proteios.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class org.proteios.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.proteios.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface org.proteios.core.data.OwnableData
getOwner, setOwner
 

Constructor Detail

MeasuredBioMaterialData

public MeasuredBioMaterialData()
Method Detail

getParent

public BioMaterialData getParent()
Get the parent biomaterial. Used for non-pooled biomaterials. The core must add logic to check that only a biomaterial of the parent type is linked.

Hibernate: many-to-one
column="`parent_id`" not-null="false" outer-join="false"

setParent

public void setParent(BioMaterialData parent)

getConcentrationInGramsPerLiter

public Float getConcentrationInGramsPerLiter()
Get the concentration of the biomaterial. Normally this is the protein concentration in g/l

Hibernate: property
column="`concentration`" type="float" not-null="false"

setConcentrationInGramsPerLiter

public void setConcentrationInGramsPerLiter(Float concentration)

getOriginalQuantityInMicroLiters

public Float getOriginalQuantityInMicroLiters()
Get the original quantity of the biomaterial measured in microliters.

Hibernate: property
column="`original_quantity`" type="float" not-null="false"

setOriginalQuantityInMicroLiters

public void setOriginalQuantityInMicroLiters(Float originalQuantity)

getRemainingQuantityInMicroLiters

public Float getRemainingQuantityInMicroLiters()
Get the remaining quantity of the biomaterial measured in microliters.

Hibernate: property
column="`remaining_quantity`" type="float" not-null="false"

setRemainingQuantityInMicroLiters

public void setRemainingQuantityInMicroLiters(Float remainingQuantity)

isPooled

public boolean isPooled()
If the biomaterial was created by pooling other biomaterials of the same type or not.

Hibernate: property
column="`pooled`" type="boolean" not-null="false"

setPooled

public void setPooled(boolean pooled)

getCreationEvent

public CreationEventData getCreationEvent()
Returns:
Returns the creationEvent.
Hibernate: many-to-one
class="org.proteios.core.data.CreationEventData" column="`creationEventId`"

setCreationEvent

public void setCreationEvent(CreationEventData creationEvent)
Parameters:
creationEvent - The creationEvent to set.

getEvents

public Set<BioMaterialEventData> getEvents()
These are the events that have used this biomaterial. This is the inverse end.

Hibernate: set
table="`BioMaterialEventSources`" lazy="true" inverse="true"
Hibernate: collection-key
column="`biomaterial_id`"
Hibernate: collection-many-to-many
column="`event_id`" class="org.proteios.core.data.BioMaterialEventData"

setEvents

public void setEvents(Set<BioMaterialEventData> events)

Last update: 2011-06-23