Package org.cxbox.core.crudma.state
Interface BcStateAware
- All Known Implementing Classes:
BcStateAwareImpl
public interface BcStateAware
Cxbox 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:
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear all state records for current clientObtain state for business component instancebooleanObtain information if this record was already persisted.voidset(BusinessComponent bc, BcState state) Change state for business component instance
-
Method Details
-
getState
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
Clear all state records for current client -
set
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
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)
-