|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.system.AbstractPreference
org.openwms.core.domain.preferences.ApplicationPreference
public class ApplicationPreference
An ApplicationPreference is used to store a configuration setting in application scope.
The table model of an ApplicationPreference spans an unique key over the columns C_TYPE and C_KEY.
It's counterpart in the context of JAXB is the applicationPreference element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary | |
---|---|
static String |
NQ_FIND_ALL
Query to find all ApplicationPreference s. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
ApplicationPreference()
Create a new ApplicationPreference . |
|
ApplicationPreference(String key)
Create a new ApplicationPreference . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare the uid property field. |
protected Object[] |
getFields()
Return all fields as an array of objects. |
String |
getKey()
Get the key. |
PreferenceKey |
getPrefKey()
Return a PreferenceKey of this preference. |
PropertyScope |
getType()
Return the particular type of the preference. |
int |
hashCode()
Use the uid to calculate the hashCode. |
Methods inherited from class org.openwms.core.domain.system.AbstractPreference |
---|
getDescription, getFloatValue, getId, getMaximum, getMinimum, getPropertiesAsString, getValue, getVersion, isFromFile, isNew, setDescription, setFloatValue, setFromFile, setMaximum, setMinimum, setValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NQ_FIND_ALL
ApplicationPreference
s. Name is "ApplicationPreference.findAll" .
Constructor Detail |
---|
public ApplicationPreference()
ApplicationPreference
. Only defined by the JAXB
implementation.
public ApplicationPreference(String key)
ApplicationPreference
.
key
- the key
IllegalArgumentException
- when key is null
or emptyMethod Detail |
---|
public String getKey()
public PropertyScope getType()
getType
in class AbstractPreference
AbstractPreference.getType()
protected Object[] getFields()
getFields
in class AbstractPreference
AbstractPreference.getFields()
public PreferenceKey getPrefKey()
PreferenceKey
of this preference.
Uses the type and key to create a PreferenceKey
instance.
getPrefKey
in class AbstractPreference
PreferenceKey
AbstractPreference.getPrefKey()
public int hashCode()
Use all fields to calculate the hashCode and don't use the hashCode of the super class.
Uses the type and the key for the hashCode calculation.
hashCode
in class AbstractPreference
Object.hashCode()
public boolean equals(Object obj)
Use all fields for comparison but don't call the super class.
Comparison done with the type and the key fields. Not delegated to super class.
equals
in class AbstractPreference
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |