public class StatemodelProvider
extends java.lang.Object
StatemodelProvider
provides methods for reading, setting or changing state information
for BusinessObject
s.Query
,
BusinessObject
Constructor and Description |
---|
StatemodelProvider() |
Modifier and Type | Method and Description |
---|---|
static <T extends Stateful> |
changeState(T t,
int iNumeral)
Deprecated.
- Use
Stateful.changeStatus(State) to ensure type-safety |
static <T extends Stateful> |
changeState(T t,
State sState)
Deprecated.
|
void |
setStatemodelService(StatemodelService service) |
public void setStatemodelService(StatemodelService service)
@Deprecated public static <T extends Stateful> void changeState(T t, int iNumeral) throws java.lang.Exception
Stateful.changeStatus(State)
to ensure type-safetyBusinessObject
.
The passed numeral will be checked wether it can be assigned to the BusinessObject
or not;
In case of an invalid numeral the method will throw an exception.
t
- - BusinessObject
that state must be changediNumeral
- - The Numeral of the new statejava.lang.Exception
@Deprecated public static <T extends Stateful> void changeState(T t, State sState) throws BusinessException
Stateful.changeStatus(State)
BusinessObject
.
The passed numeral is type-safe. It is checked wether the state is valid for the statemodel.
In case of an invalid numeral or a non-fitting state/statemodel an BusinessException will be thrown back.
t
- - BusinessObject
that state must be changedsState
- BusinessException
Copyright © 2024. All rights reserved.