Package com.sgs.common.database
Class Location
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Location
-
@Entity public class Location extends HibernateObject
This class represents a location Locations can be either Stock or Production dependent onLocation.LocationTypeand can be categorized beyond that withcategoryLocations can be physical racks, groups of locations, areas or just a logical grouping of terminals See how locations and terminals are linked withTerminalLocation- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocation.LocationCategoryThe category of a stock location.static classLocation.LocationTypeThe type of location.
-
Field Summary
Fields Modifier and Type Field Description java.lang.IntegeraisleThe aisle on which this location livesjava.lang.IntegerbinBin location.intcategoryThe category of the location.java.lang.Stringcode*Primary Key* The unique location codejava.lang.Stringdatafield1A datafield for optional use, storage and label printingjava.lang.Stringdatafield2A datafield for optional use, storage and label printingjava.lang.Stringdatafield3A datafield for optional use, storage and label printingjava.lang.DoubledepthThe physical depth of the locationjava.lang.StringdescriptionA description for the locationjava.lang.StringdistanceAn alphanumeric distance rating from the dock doors.java.lang.DoubleheightThe physical height of the locationintholdRestrictedSignifies whether the location should warn or disallow pallets which are on holdintmixAllergensA boolean value to indicate whether this location allows allergens to mixintsingleCommodityOnlyA boolean value to indicate whether only one commodity may be placed in this location.intsingleItemOnlyBoolean value indicates whether only one lot number or pallet may exist in this locationSitesiteThe Site that this location belongs tointtypeThe type of locationLocation.LocationTypeintunavailableMarker to denote whether location is currently unavailablejava.lang.DoubleweightLimitThe maximum weight limit for the locationjava.lang.DoublewidthThe physical width of the locationjava.lang.IntegerxThe X position of the location.java.lang.IntegeryThe Y position of the location.-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetAisle()java.lang.IntegergetBin()intgetCategory()Location.LocationCategorygetCategoryEnum()java.lang.StringgetCode()java.lang.StringgetDatafield1()java.lang.StringgetDatafield2()java.lang.StringgetDatafield3()java.util.DategetDeleted()java.lang.DoublegetDepth()java.lang.StringgetDescription()java.lang.StringgetDistance()LocationgetGravRackShiftLocation()java.lang.DoublegetHeight()intgetHoldRestricted()intgetMixAllergens()intgetSingleCommodityOnly()intgetSingleItemOnly()SitegetSite()intgetType()intgetUnavailable()java.lang.DoublegetWeightLimit()java.lang.DoublegetWidth()java.lang.IntegergetX()java.lang.IntegergetY()voidsetAisle(java.lang.Integer aisle)voidsetBin(java.lang.Integer bin)voidsetCategory(int category)voidsetCategoryEnum(Location.LocationCategory category)voidsetCode(java.lang.String code)voidsetDatafield1(java.lang.String datafield1)voidsetDatafield2(java.lang.String datafield2)voidsetDatafield3(java.lang.String datafield3)voidsetDeleted(java.util.Date deleted)voidsetDepth(java.lang.Double depth)voidsetDescription(java.lang.String description)voidsetDistance(java.lang.String distance)voidsetGravRackShiftLocation(Location gravRackShiftLocation)voidsetHeight(java.lang.Double height)voidsetHoldRestricted(int holdRestricted)voidsetMixAllergens(int mixAllergens)voidsetSingleCommodityOnly(int singleCommodityOnly)voidsetSingleItemOnly(int singleItemOnly)voidsetSite(Site site)voidsetType(int type)voidsetUnavailable(int unavailable)voidsetWeightLimit(java.lang.Double weightLimit)voidsetWidth(java.lang.Double width)voidsetX(java.lang.Integer x)voidsetY(java.lang.Integer y)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
code
public java.lang.String code
*Primary Key* The unique location code
-
description
public java.lang.String description
A description for the location
-
type
public int type
The type of locationLocation.LocationType
-
x
public java.lang.Integer x
The X position of the location. Typically this would be a rack column
-
y
public java.lang.Integer y
The Y position of the location. Typically this would be a rack row
-
site
public Site site
The Site that this location belongs to
-
height
public java.lang.Double height
The physical height of the location
-
width
public java.lang.Double width
The physical width of the location
-
depth
public java.lang.Double depth
The physical depth of the location
-
distance
public java.lang.String distance
An alphanumeric distance rating from the dock doors. Not really used if Aisle, X and Y are used.
-
singleItemOnly
public int singleItemOnly
Boolean value indicates whether only one lot number or pallet may exist in this location
-
aisle
public java.lang.Integer aisle
The aisle on which this location lives
-
category
public int category
The category of the location. SeeLocation.LocationCategory
-
mixAllergens
public int mixAllergens
A boolean value to indicate whether this location allows allergens to mix
-
weightLimit
public java.lang.Double weightLimit
The maximum weight limit for the location
-
singleCommodityOnly
public int singleCommodityOnly
A boolean value to indicate whether only one commodity may be placed in this location. This will allow multiple lots/pallets but they must be of the sameCommodity
-
unavailable
public int unavailable
Marker to denote whether location is currently unavailable
-
datafield1
public java.lang.String datafield1
A datafield for optional use, storage and label printing
-
datafield2
public java.lang.String datafield2
A datafield for optional use, storage and label printing
-
datafield3
public java.lang.String datafield3
A datafield for optional use, storage and label printing
-
bin
public java.lang.Integer bin
Bin location. Works in conjunction with aisle,x,y for fundamentally greater granularity
-
holdRestricted
public int holdRestricted
Signifies whether the location should warn or disallow pallets which are on hold
-
-
Method Detail
-
getCode
public java.lang.String getCode()
-
setCode
public void setCode(java.lang.String code)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getType
public int getType()
-
setType
public void setType(int type)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getX
public java.lang.Integer getX()
-
getY
public java.lang.Integer getY()
-
setX
public void setX(java.lang.Integer x)
-
setY
public void setY(java.lang.Integer y)
-
getSite
public Site getSite()
-
setSite
public void setSite(Site site)
-
getHeight
public java.lang.Double getHeight()
-
getWidth
public java.lang.Double getWidth()
-
getDepth
public java.lang.Double getDepth()
-
setHeight
public void setHeight(java.lang.Double height)
-
setWidth
public void setWidth(java.lang.Double width)
-
setDepth
public void setDepth(java.lang.Double depth)
-
getDistance
public java.lang.String getDistance()
-
setDistance
public void setDistance(java.lang.String distance)
-
getSingleItemOnly
public int getSingleItemOnly()
-
setSingleItemOnly
public void setSingleItemOnly(int singleItemOnly)
-
getAisle
public java.lang.Integer getAisle()
-
setAisle
public void setAisle(java.lang.Integer aisle)
-
getCategory
public int getCategory()
-
setCategory
public void setCategory(int category)
-
getMixAllergens
public int getMixAllergens()
-
setMixAllergens
public void setMixAllergens(int mixAllergens)
-
getWeightLimit
public java.lang.Double getWeightLimit()
-
setWeightLimit
public void setWeightLimit(java.lang.Double weightLimit)
-
getSingleCommodityOnly
public int getSingleCommodityOnly()
-
setSingleCommodityOnly
public void setSingleCommodityOnly(int singleCommodityOnly)
-
getUnavailable
public int getUnavailable()
-
setUnavailable
public void setUnavailable(int unavailable)
-
getDatafield1
public java.lang.String getDatafield1()
-
setDatafield1
public void setDatafield1(java.lang.String datafield1)
-
getDatafield2
public java.lang.String getDatafield2()
-
setDatafield2
public void setDatafield2(java.lang.String datafield2)
-
getDatafield3
public java.lang.String getDatafield3()
-
setDatafield3
public void setDatafield3(java.lang.String datafield3)
-
getBin
public java.lang.Integer getBin()
-
setBin
public void setBin(java.lang.Integer bin)
-
getHoldRestricted
public int getHoldRestricted()
-
setHoldRestricted
public void setHoldRestricted(int holdRestricted)
-
getCategoryEnum
public Location.LocationCategory getCategoryEnum()
-
setCategoryEnum
public void setCategoryEnum(Location.LocationCategory category)
-
getGravRackShiftLocation
public Location getGravRackShiftLocation()
-
setGravRackShiftLocation
public void setGravRackShiftLocation(Location gravRackShiftLocation)
-
-