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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default value of height.
    static final int
    Default value of length.
    static final String
    Default value of the description, by default * "--" .
    static final int
    Default value of width.
    private String
    Description of the LocationType.
    private int
    Height of the LocationType.
    private int
    Length of the LocationType.
    private String
    Type of the LocationType (unique).
    private int
    Width of the LocationType.

    Fields inherited from class org.ameba.integration.jpa.ApplicationEntity

    C_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA...
     
    Create a new LocationType with an unique natural key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the description of this LocationType.
    int
    Returns the height of the LocationType.
    int
    Returns the length of the LocationType.
    Returns the unique identifier of the LocationType.
    int
    Returns the width of this LocationType.
    int
    void
    setDescription(String description)
    Set the description of the LocationType.
    void
    setHeight(int height)
    Set the height of this LocationType.
    void
    setLength(int length)
    Set the length of this LocationType.
    void
    setWidth(int width)
    Set the width of this LocationType.
    Return the type as String.

    Methods inherited from class org.ameba.integration.jpa.ApplicationEntity

    getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey

    Methods inherited from class org.ameba.integration.jpa.BaseEntity

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      private String type
      Type of the LocationType (unique).
    • description

      private String description
      Description of the LocationType.
    • DEF_TYPE_DESCRIPTION

      public static final String DEF_TYPE_DESCRIPTION
      Default value of the description, by default * "--" .
      See Also:
    • length

      private int length
      Length of the LocationType.
    • DEF_LENGTH

      public static final int DEF_LENGTH
      Default value of length.
      See Also:
    • width

      private int width
      Width of the LocationType.
    • DEF_WIDTH

      public static final int DEF_WIDTH
      Default value of width.
      See Also:
    • height

      private int height
      Height of the LocationType.
    • DEF_HEIGHT

      public static final int DEF_HEIGHT
      Default value of height.
      See Also:
  • Constructor Details

    • LocationType

      protected LocationType()
      Dear JPA...
    • LocationType

      public LocationType(String type)
      Create a new LocationType with an unique natural key.
      Parameters:
      type - Unique type
  • Method Details

    • getType

      public String getType()
      Returns the unique identifier of the LocationType.
      Returns:
      type The Type
    • getLength

      public int getLength()
      Returns the length of the LocationType.
      Returns:
      length The Length
    • setLength

      public void setLength(int length)
      Set the length of this LocationType.
      Parameters:
      length - The length of this type
    • getWidth

      public int getWidth()
      Returns the width of this LocationType.
      Returns:
      width The Width
    • setWidth

      public void setWidth(int width)
      Set the width of this LocationType.
      Parameters:
      width - The width of this type
    • getHeight

      public int getHeight()
      Returns the height of the LocationType.
      Returns:
      height The Height
    • setHeight

      public void setHeight(int height)
      Set the height of this LocationType.
      Parameters:
      height - The height of this type
    • getDescription

      public String getDescription()
      Returns the description of this LocationType.
      Returns:
      description The description text
    • setDescription

      public void setDescription(String description)
      Set the description of the LocationType.
      Parameters:
      description - The description text of this type
    • toString

      public String toString()
      Return the type as String.
      Overrides:
      toString in class Object
      Returns:
      String
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity