The following scenarios focus on Data fetching and changing. These
scenarios will happen in almost every transaction or transaction step.
- Scenario VI (for Persistence Shared CHA or Memory Shared CHA):
- Use getContextbyInstanceID() to get the Context A with the given Instance
ID
- Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
- Change the value of Context A using the APIs like setValueAt(), setKeyedCollection()
- Commit Context A
- Scenario VII (for Persistence Shared CHA or Memory Shared CHA):
- Use the getContextbyInstanceID() to get the Context A with the given Instance
ID
- Get Context B, one of the children of the Context A
- Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
- Change the value of Context B using the APIs like setValueAt(), setKeyedCollection()
- Commit Context A
- Scenario VIII (for Local CHA):
- Use getContextbyInstanceID() to get the Context A with the given Instance
ID
- Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
- Change the value of Context A using the APIs like setValueAt(), setKeyedCollection()
- Scenario IX (for Local CHA):
- Use getContextbyInstanceID() to get the Context A with the given Instance
ID
- Get Context B, one of the children of the Context A
- Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
- Change the value of Context B using the APIs like setValueAt(), setKeyedCollection()