Package org.openwms.common.location
Class LocationType
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.common.location.LocationType
- All Implemented Interfaces:
Serializable,org.ameba.integration.TypedEntity<Long>
@Entity
public class LocationType
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
A LocationType defines a type of
Locations with same characteristics.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value ofheight.static final intDefault value oflength.static final StringDefault value of the description, by default * "--" .static final intDefault value ofwidth.private StringDescription of theLocationType.private intHeight of theLocationType.private intLength of theLocationType.private StringType of theLocationType(unique).private intWidth of theLocationType.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDear JPA...LocationType(String type) Create a newLocationTypewith an unique natural key. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the description of thisLocationType.intReturns the height of theLocationType.intReturns the length of theLocationType.getType()Returns the unique identifier of theLocationType.intgetWidth()Returns the width of thisLocationType.inthashCode()voidsetDescription(String description) Set the description of theLocationType.voidsetHeight(int height) Set the height of thisLocationType.voidsetLength(int length) Set the length of thisLocationType.voidsetWidth(int width) Set the width of thisLocationType.toString()Return the type as String.Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
type
Type of theLocationType(unique). -
description
Description of theLocationType. -
DEF_TYPE_DESCRIPTION
Default value of the description, by default * "--" .- See Also:
-
length
private int lengthLength of theLocationType. -
DEF_LENGTH
public static final int DEF_LENGTHDefault value oflength.- See Also:
-
width
private int widthWidth of theLocationType. -
DEF_WIDTH
public static final int DEF_WIDTHDefault value ofwidth.- See Also:
-
height
private int heightHeight of theLocationType. -
DEF_HEIGHT
public static final int DEF_HEIGHTDefault value ofheight.- See Also:
-
-
Constructor Details
-
LocationType
protected LocationType()Dear JPA... -
LocationType
Create a newLocationTypewith an unique natural key.- Parameters:
type- Unique type
-
-
Method Details
-
getType
Returns the unique identifier of theLocationType.- Returns:
- type The Type
-
getLength
public int getLength()Returns the length of theLocationType.- Returns:
- length The Length
-
setLength
public void setLength(int length) Set the length of thisLocationType.- Parameters:
length- The length of this type
-
getWidth
public int getWidth()Returns the width of thisLocationType.- Returns:
- width The Width
-
setWidth
public void setWidth(int width) Set the width of thisLocationType.- Parameters:
width- The width of this type
-
getHeight
public int getHeight()Returns the height of theLocationType.- Returns:
- height The Height
-
setHeight
public void setHeight(int height) Set the height of thisLocationType.- Parameters:
height- The height of this type
-
getDescription
Returns the description of thisLocationType.- Returns:
- description The description text
-
setDescription
Set the description of theLocationType.- Parameters:
description- The description text of this type
-
toString
Return the type as String. -
equals
- Overrides:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-