|
||||||||||
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.ModulePreference
public class ModulePreference
A ModulePreference is used to store configuration settings in Module scope.
The table model of an ModulePreference spans an unique key over the columns C_TYPE, C_OWNER and C_KEY.
It's counterpart in the context of JAXB is the modulePreference 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 ModulePreference s. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
ModulePreference()
Create a new ModulePreference . |
|
ModulePreference(String owner,
String key)
Create a new ModulePreference . |
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. |
String |
getOwner()
Get the owner. |
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
ModulePreference
s. Name is "ModulePreference.findAll" .
Constructor Detail |
---|
public ModulePreference()
ModulePreference
. Only defined by the JAXB
implementation.
public ModulePreference(String owner, String key)
ModulePreference
.
owner
- The name of the owning modulekey
- the key
IllegalArgumentException
- when key or owner is null
or emptyMethod Detail |
---|
public String getKey()
public String getOwner()
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, owner and the 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, owner 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, owner 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 |