Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 21.1b

...

The figure above illustrates how to store map customerMap (containing some customer data) to memory. The map is stored using key "customerMap".
If a map with the given key already exists in memory, it will be overwritten by the Memory Adapter. In this case, parameter oldValue returns the the complete previously stored hash map.

Retrieving Data from the Map

...

A hash map containing some customer data has been stored to memory using the key "customerMap" (see Storing a Map to Memory further above). Individual map elements from this map can be accessed via their key customerID.
The value of the new map element resp. the new value of the map element to be changed is provided in an object of type Customer via parameter value of type Any.

Noteinfo
iconfalse

If there is no map element with the given key, the Memory adapter will add this element to the map.
If the map element with the given key is already existing in the map, it will be updated to the provided value. In this case, parameter oldValue returns the complete previously stored hash map.

Removing an Element from the Map

...

Figure: Removing a Map Element from a Map in Memory

A has hash map containing some customer data has been stored to memory using the key "customerMap" (see Storing a Map to Memory further above). Individual map elements from this map can be accessed removed via their key customerID. In this case, parameter oldValue returns the old map value.
If there is no map element with the given key, the Memory adapter throws an error.

...

The example above shows how the map that has been stored under key "customerMap" can be removed. In this case, parameter oldValue returns the the complete previously stored hash map.
If there is no map with the given key, the Memory adapter throws an error(MEMADSM/12, see also the list of system errors).

...