Package mc.core.model.cc
Class State
java.lang.Object
mc.core.model.cc.State
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
Entity that stores the current state of an object. The object must be a ComplexEntity that implements IStateManaged.
The state is given by StateType belonging to a StateTypeGroup, each object can only have one state per
StateTypeGroup, must be enforced by application. With the state the user that set this state is stored and the date.
Locale dependent StateTypes (given by StateTypeGroup) must have the locale, for independent StateTypes the undefined
locale is stored.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classcompares two states first by their state group (locale indepenedent state groups first, then ordered by display in given locale), if same state group and locale dependent, compares by locale display, then by state group type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()getUser()inthashCode()voidsetDateOfChange(Calendar date) voidsetId(long id) voidvoidsetObject(ComplexEntity object) voidsetStateType(StateType stateType) voidtoString()
-
Constructor Details
-
State
public State()
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getObject
-
setObject
-
getStateType
-
setStateType
-
getDateOfChange
-
setDateOfChange
-
getUser
-
setUser
-
getLocale
-
setLocale
-
equals
-
hashCode
public int hashCode() -
toString
-