Package org.cxbox.core.crudma.state
Interface BcStateAware
-
- All Known Implementing Classes:
BcStateAwareImpl
public interface BcStateAwareCxbox component that allows change state of current Business component between http requests. Used for share changes between readOnly requests (type of requests, when no changes was stored in persistence layer (e.g. database))- See Also:
BcState,BusinessComponent,CrudmaGateway
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clear all state records for current clientBcStategetState(BusinessComponent bc)Obtain state for business component instancebooleanisPersisted(BusinessComponent bc)Obtain information if this record was already persisted.voidset(BusinessComponent bc, BcState state)Change state for business component instance
-
-
-
Method Detail
-
getState
BcState getState(BusinessComponent bc)
Obtain state for business component instance- Parameters:
bc- is Business component state key (name and record identifier)- Returns:
- a state for current business component and current client
-
clear
void clear()
Clear all state records for current client
-
set
void set(BusinessComponent bc, BcState state)
Change state for business component instance- Parameters:
bc- is Business component state key (name and record identifier)state- is BCState that must be changed
-
isPersisted
boolean isPersisted(BusinessComponent bc)
Obtain information if this record was already persisted. This method is necessary to determine whether to create a record from current state.- Parameters:
bc- is Business component state key (name and record identifier)
-
-