beforeOptimisticWrite(StateManagerImpl context,
int field,
boolean mutate)
Perform any actions necesssary and return the proper lifecycle state
prior to the state of the given instance being written within
an optimistic transaction.

beforeWrite(StateManagerImpl context,
int field,
boolean mutate)
Perform any actions necesssary and return the proper lifecycle state
prior to the state of the given instance being written within
an active transaction.

beforeWrite

Perform any actions necesssary and return the proper lifecycle state
prior to the state of the given instance being written within
an active transaction. The mutate parameter tells if it is a
direct mutation on an SCO field.
Returns the this pointer by default.

beforeOptimisticWrite

Perform any actions necesssary and return the proper lifecycle state
prior to the state of the given instance being written within
an optimistic transaction. The mutate parameter tells if it is a
direct mutation on an SCO field.
Returns the this pointer by default.