Record state representation.
The state diagram it describes goes as follows:
Completely new record:
NEW -> NEW_MODIFIED -> DATA_SAVED <=> DATA_MODIFIED <-|
Record retrived from DB:
NEW_INITIALIZING -> NEW_INITIALIZED -> DATA_MODIFIED <=> DATA_SAVED <-|
On delete:
NEW_MODIFIED -> DELETED
DATA_SAVED -> DELETED
DATA_MODIFIED-> DELETED
NEW_INITIALIZED-> DELETED
author: Gennady Krizhevsky |