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.LocationType
and can be categorized beyond that withcategory
Locations 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 class
Location.LocationCategory
The category of a stock location.static class
Location.LocationType
The type of location.
-
Field Summary
Fields Modifier and Type Field Description java.lang.Integer
aisle
The aisle on which this location livesjava.lang.Integer
bin
Bin location.int
category
The category of the location.java.lang.String
code
*Primary Key* The unique location codejava.lang.String
datafield1
A datafield for optional use, storage and label printingjava.lang.String
datafield2
A datafield for optional use, storage and label printingjava.lang.String
datafield3
A datafield for optional use, storage and label printingjava.lang.Double
depth
The physical depth of the locationjava.lang.String
description
A description for the locationjava.lang.String
distance
An alphanumeric distance rating from the dock doors.java.lang.Double
height
The physical height of the locationint
holdRestricted
Signifies whether the location should warn or disallow pallets which are on holdint
mixAllergens
A boolean value to indicate whether this location allows allergens to mixint
singleCommodityOnly
A boolean value to indicate whether only one commodity may be placed in this location.int
singleItemOnly
Boolean value indicates whether only one lot number or pallet may exist in this locationSite
site
The Site that this location belongs toint
type
The type of locationLocation.LocationType
int
unavailable
Marker to denote whether location is currently unavailablejava.lang.Double
weightLimit
The maximum weight limit for the locationjava.lang.Double
width
The physical width of the locationjava.lang.Integer
x
The X position of the location.java.lang.Integer
y
The 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.Integer
getAisle()
java.lang.Integer
getBin()
int
getCategory()
Location.LocationCategory
getCategoryEnum()
java.lang.String
getCode()
java.lang.String
getDatafield1()
java.lang.String
getDatafield2()
java.lang.String
getDatafield3()
java.util.Date
getDeleted()
java.lang.Double
getDepth()
java.lang.String
getDescription()
java.lang.String
getDistance()
Location
getGravRackShiftLocation()
java.lang.Double
getHeight()
int
getHoldRestricted()
int
getMixAllergens()
int
getSingleCommodityOnly()
int
getSingleItemOnly()
Site
getSite()
int
getType()
int
getUnavailable()
java.lang.Double
getWeightLimit()
java.lang.Double
getWidth()
java.lang.Integer
getX()
java.lang.Integer
getY()
void
setAisle(java.lang.Integer aisle)
void
setBin(java.lang.Integer bin)
void
setCategory(int category)
void
setCategoryEnum(Location.LocationCategory category)
void
setCode(java.lang.String code)
void
setDatafield1(java.lang.String datafield1)
void
setDatafield2(java.lang.String datafield2)
void
setDatafield3(java.lang.String datafield3)
void
setDeleted(java.util.Date deleted)
void
setDepth(java.lang.Double depth)
void
setDescription(java.lang.String description)
void
setDistance(java.lang.String distance)
void
setGravRackShiftLocation(Location gravRackShiftLocation)
void
setHeight(java.lang.Double height)
void
setHoldRestricted(int holdRestricted)
void
setMixAllergens(int mixAllergens)
void
setSingleCommodityOnly(int singleCommodityOnly)
void
setSingleItemOnly(int singleItemOnly)
void
setSite(Site site)
void
setType(int type)
void
setUnavailable(int unavailable)
void
setWeightLimit(java.lang.Double weightLimit)
void
setWidth(java.lang.Double width)
void
setX(java.lang.Integer x)
void
setY(java.lang.Integer y)
java.lang.String
toString()
-
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:
toString
in 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)
-
-