Package com.sgs.common.database
Class Pack
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Pack
-
public class Pack extends HibernateObject
This class represents a serialized pack from production This class allows for each pack of a produced item to have it's own unique serial number This allows each individual pack to be traced on it's own- Author:
- SGSystems
-
-
Field Summary
-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Pack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchgetBatch()java.lang.StringgetConstituentLotNo()ContainergetContainer()java.util.DategetDateAllocated()doublegetEaches()java.util.DategetTimestamp()WeightUnitgetUnit()UsergetUser()doublegetWeight()voidsetBatch(Batch batch)voidsetConstituentLotNo(java.lang.String constituentLotNo)voidsetContainer(Container container)voidsetDateAllocated(java.util.Date dateAllocated)voidsetEaches(double eaches)voidsetTimestamp(java.util.Date timestamp)voidsetUnit(WeightUnit unit)voidsetUser(User user)voidsetWeight(double weight)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Method Detail
-
getWeight
public double getWeight()
-
getBatch
public Batch getBatch()
-
setWeight
public void setWeight(double weight)
-
setBatch
public void setBatch(Batch batch)
-
getDateAllocated
public java.util.Date getDateAllocated()
-
setDateAllocated
public void setDateAllocated(java.util.Date dateAllocated)
-
getEaches
public double getEaches()
-
setEaches
public void setEaches(double eaches)
-
getConstituentLotNo
public java.lang.String getConstituentLotNo()
-
setConstituentLotNo
public void setConstituentLotNo(java.lang.String constituentLotNo)
-
getUnit
public WeightUnit getUnit()
-
setUnit
public void setUnit(WeightUnit unit)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getContainer
public Container getContainer()
-
setContainer
public void setContainer(Container container)
-
getTimestamp
public java.util.Date getTimestamp()
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
-