Last update: 2011-06-23

org.proteios.core.data
Class UsedQuantity

java.lang.Object
  extended by org.proteios.core.data.UsedQuantity
All Implemented Interfaces:
Serializable

public class UsedQuantity
extends Object
implements Serializable

Hibernate will not save entries in the sources map BioMaterialEventData.getSources() where the element is null, so we have to use a composite element instead. This class maps the used_quantity column in the BioMaterialEventSources table.

Version:
2.0
Author:
Nicklas
See Also:
Biomaterials overview, Serialized Form
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Constructor Summary
UsedQuantity(Float usedQuantity)
          Create a new instance.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another UsedQuantity object.
 Float getUsedQuantityInMicroLiters()
          Get the used quantity.
 int hashCode()
          Calculate the hash code for the object.
 String toString()
          Convert the value to a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsedQuantity

public UsedQuantity(Float usedQuantity)
Create a new instance.

Parameters:
usedQuantity - The used quantity
Method Detail

getUsedQuantityInMicroLiters

public Float getUsedQuantityInMicroLiters()
Get the used quantity.

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

equals

public boolean equals(Object o)
Check if this object is equal to another UsedQuantity object. They are considered to be the same if the contains the same non-null value.

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

toString

public String toString()
Convert the value to a string.

Overrides:
toString in class Object

Last update: 2011-06-23