Class PreferenceEO

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.core.preferences.impl.jpa.PreferenceEO
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class PreferenceEO extends org.ameba.integration.jpa.ApplicationEntity implements Serializable
An PreferenceEO is the persistent entity class that represents preferences in the database.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • FIND_ALL

      public static final String FIND_ALL
      Suffix for the FIND_ALL named query. Default ".findAll"
      See Also:
    • key

      @NotBlank @Size(min=1, max=60) private @NotBlank @Size(min=1,max=60) String key
      Key field of the PreferenceEO.
    • owner

      @Size(max=60) protected @Size(max=60) String owner
    • description

      @Size(max=255) protected @Size(max=255) String description
      Description text of the PreferenceEO.
    • fromFile

      private boolean fromFile
      Flag to remember if the preference was originally imported from a file.
    • scope

      @NotNull protected @NotNull PropertyScope scope
      Scope of this preference.
    • val

      @Size(max=4096) private @Size(max=4096) String val
      A current value of the PreferenceEO.
    • defValue

      @Size(max=4096) private @Size(max=4096) String defValue
      The default value of the PreferenceEO.
    • minValue

      @Size(max=4096) private @Size(max=4096) String minValue
      The minimum value of the PreferenceEO.
    • maxValue

      @Size(max=4096) private @Size(max=4096) String maxValue
      The maximum value of the PreferenceEO.
    • groupName

      @Size(max=36) private @Size(max=36) String groupName
      The name of the group the PreferenceEO is assigned to.
    • type

      @NotNull protected @NotNull PreferenceType type
      Type of this preference.
  • Constructor Details

    • PreferenceEO

      public PreferenceEO()
    • PreferenceEO

      private PreferenceEO(PreferenceEO.Builder builder)
  • Method Details

    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getVal

      public String getVal()
    • setVal

      public void setVal(String val)
    • isFromFile

      public boolean isFromFile()
    • setFromFile

      public void setFromFile(boolean fromFile)
    • getScope

      public PropertyScope getScope()
    • setScope

      public void setScope(PropertyScope scope)
    • getDefValue

      public String getDefValue()
    • setDefValue

      public void setDefValue(String defValue)
    • getMinValue

      public String getMinValue()
    • setMinValue

      public void setMinValue(String minValue)
    • getMaxValue

      public String getMaxValue()
    • setMaxValue

      public void setMaxValue(String maxValue)
    • getGroupName

      public String getGroupName()
    • setGroupName

      public void setGroupName(String groupName)
    • getType

      public PreferenceType getType()
    • setType

      public void setType(PreferenceType type)
    • setPersistentKey

      public void setPersistentKey(String pKey)
      Overrides:
      setPersistentKey in class org.ameba.integration.jpa.ApplicationEntity
    • getPrefKey

      public PreferenceKey getPrefKey()
      Return a PreferenceKey of this preference.
      Returns:
      A PreferenceKey
    • equals

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

      public int hashCode()
      All fields.
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity
    • toString

      public String toString()
      All fields.
      Overrides:
      toString in class Object
    • newBuilder

      public static PreferenceEO.Builder newBuilder()