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:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Size(max=4096) String
The default value of thePreferenceEO
.protected @Size(max=255) String
Description text of thePreferenceEO
.static final String
Suffix for the FIND_ALL named query.private boolean
Flag to remember if the preference was originally imported from a file.private @Size(max=36) String
The name of the group thePreferenceEO
is assigned to.private @NotBlank @Size(min=1,max=60) String
Key field of thePreferenceEO
.private @Size(max=4096) String
The maximum value of thePreferenceEO
.private @Size(max=4096) String
The minimum value of thePreferenceEO
.protected @Size(max=60) String
protected @NotNull PropertyScope
Scope of this preference.protected @NotNull PreferenceType
Type of this preference.private @Size(max=4096) String
A current value of thePreferenceEO
.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
All fields.getKey()
getOwner()
Return aPreferenceKey
of this preference.getScope()
getType()
getVal()
int
hashCode()
All fields.boolean
static PreferenceEO.Builder
void
setDefValue
(String defValue) void
setDescription
(String description) void
setFromFile
(boolean fromFile) void
setGroupName
(String groupName) void
void
setMaxValue
(String maxValue) void
setMinValue
(String minValue) void
void
setPersistentKey
(String pKey) void
setScope
(PropertyScope scope) void
setType
(PreferenceType type) void
toString()
All fields.Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
FIND_ALL
Suffix for the FIND_ALL named query. Default ".findAll"- See Also:
-
key
Key field of thePreferenceEO
. -
owner
-
description
Description text of thePreferenceEO
. -
fromFile
private boolean fromFileFlag to remember if the preference was originally imported from a file. -
scope
Scope of this preference. -
val
A current value of thePreferenceEO
. -
defValue
The default value of thePreferenceEO
. -
minValue
The minimum value of thePreferenceEO
. -
maxValue
The maximum value of thePreferenceEO
. -
groupName
The name of the group thePreferenceEO
is assigned to. -
type
Type of this preference.
-
-
Constructor Details
-
PreferenceEO
public PreferenceEO() -
PreferenceEO
-
-
Method Details
-
getKey
-
setKey
-
getOwner
-
setOwner
-
getDescription
-
setDescription
-
getVal
-
setVal
-
isFromFile
public boolean isFromFile() -
setFromFile
public void setFromFile(boolean fromFile) -
getScope
-
setScope
-
getDefValue
-
setDefValue
-
getMinValue
-
setMinValue
-
getMaxValue
-
setMaxValue
-
getGroupName
-
setGroupName
-
getType
-
setType
-
setPersistentKey
- Overrides:
setPersistentKey
in classorg.ameba.integration.jpa.ApplicationEntity
-
getPrefKey
Return aPreferenceKey
of this preference.- Returns:
- A
PreferenceKey
-
equals
All fields.- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-
toString
All fields. -
newBuilder
-