|
||||||||||
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
public abstract class AbstractPreference
An AbstractPreference is a superclass for all other preference classes within the application.
It encapsulates some common behavior of preference types.
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 AbstractPreference s. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
protected |
AbstractPreference()
Accessed by persistence provider. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare the uid property field. |
String |
getDescription()
Return the description of the
AbstractPreference . |
protected abstract Object[] |
getFields()
Return all fields as an array of objects. |
Float |
getFloatValue()
Get the floatValue of the AbstractPreference . |
Long |
getId()
Return the technical key value. |
int |
getMaximum()
Return the possible maximum value of the AbstractPreference . |
int |
getMinimum()
Return the possible minimum value of the AbstractPreference . |
abstract PreferenceKey |
getPrefKey()
Return a PreferenceKey of this preference. |
String |
getPropertiesAsString()
Return all fields as concatenated String. |
abstract PropertyScope |
getType()
Return the particular type of the preference. |
String |
getValue()
Return the value of the AbstractPreference . |
long |
getVersion()
Return the value of the optimistic locking field. |
int |
hashCode()
Use the uid to calculate the hashCode. |
boolean |
isFromFile()
Check whether the preference was originally imported from a file. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setDescription(String description)
Set a description for the AbstractPreference . |
void |
setFloatValue(Float floatValue)
Set the floatValue of the AbstractPreference . |
void |
setFromFile(boolean fromFile)
Set the fromFile. |
void |
setMaximum(int maximum)
Set a possible maximum value for the AbstractPreference . |
void |
setMinimum(int minimum)
Set a possible minimum value for the AbstractPreference . |
void |
setValue(String value)
Set the value of the AbstractPreference . |
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
AbstractPreference
s. Name is "AbstractPreference.findAll" .
Constructor Detail |
---|
protected AbstractPreference()
Method Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public long getVersion()
getVersion
in interface DomainObject<Long>
public String getValue()
value
of the AbstractPreference
.
AbstractPreference
public void setValue(String value)
value
of the AbstractPreference
.
value
- The value to setpublic Float getFloatValue()
floatValue
of the AbstractPreference
.
public void setFloatValue(Float floatValue)
floatValue
of the AbstractPreference
.
floatValue
- The floatValue to setpublic String getDescription()
description
of the
AbstractPreference
.
public void setDescription(String description)
description
for the AbstractPreference
.
description
- The description to setpublic int getMinimum()
AbstractPreference
.
public void setMinimum(int minimum)
AbstractPreference
.
minimum
- The possible minimum value to setpublic int getMaximum()
AbstractPreference
.
public void setMaximum(int maximum)
AbstractPreference
.
maximum
- The possible maximum value to setpublic boolean isFromFile()
true
if imported from a file, otherwise
false
public void setFromFile(boolean fromFile)
fromFile
- The fromFile to set.public String getPropertiesAsString()
public int hashCode()
Use all fields to calculate the hashCode and don't use the hashCode of the super class.
hashCode
in class AbstractEntity
Object.hashCode()
public boolean equals(Object obj)
Use all fields for comparison but don't call the super class.
equals
in class AbstractEntity
Object.equals(java.lang.Object)
protected abstract Object[] getFields()
public abstract PropertyScope getType()
public abstract PreferenceKey getPrefKey()
PreferenceKey
of this preference.
PreferenceKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |