Fetching data and destroying context

About this task

The following scenarios focus on Data Fetching and Context destroying. These scenarios happen when user logs off, which is the last step of the transaction.

Procedure

  1. Scenario X (for Persistence Shared CHA or Memory Shared CHA):
    1. Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
    2. Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
    3. Unchain the Context A from the parent Context
    4. Prune the Context A;
  2. Scenario XI (for Persistence Shared CHA or Memory Shared CHA):
    1. Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
    2. Get Context B, one of the Children of the Context A
    3. Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
    4. Unchain the Context B from the parent Context
    5. Prune the Context B
  3. Scenario XII (for Local CHA):
    1. Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
    2. Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
    3. Unchain the Context A from the parent Context
  4. Scenario XIII (for Local CHA):
    1. Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
    2. Get Context B, one of the Children of the Context A
    3. Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
    4. Unchain the Context B from the parent Context A