Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

Stereotype Attributes

Memory Adapter

Anchor
MemoryAdapter
MemoryAdapter

AttributeDescriptionAllowed Values
scopeSupply the scope of the operation.globalThe stored data is accessible globally to the service, and available across service calls (default).
sessionThe stored data is accessible within a service call.
action

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameinfo_alias_attribute_action
PageWithExcerptINTERNAL:_designer_excerpts


Memory Adapter Operations

store Operation

Store a value to memory.

  • store ( key : String, value : Any, hashMapKey : String, oldValue : Any )
Multiexcerpt
MultiExcerptNamestore
shouldDisplayInlineCommentsInIncludesfalse
NameTypeDirectionDescription
keyStringinSet a key that can be used to access the stored value with the retrieve operation.
valueAnyinProvide the data that should be stored to the memory.
hashMapKeyStringinIn case the stored value is a hash map, you can use hashMapKey to provide the key of a hash map entry you want to override.
Refer to Using the Memory Adapter with Maps for more information on this.
oldValueAnyoutIf the provided key is already present in the memory, it gets overwritten. In this case, oldValue returns the previous value. If no old value is present, oldValue is NULL.
In case value contains a hash map, oldValue returns the complete previously stored hash map.

retrieve Operation

Retrieve a value from memory.

  • retrieve ( key : String, hashMapKey : String, value : Any )
Multiexcerpt
MultiExcerptNameretrieve
shouldDisplayInlineCommentsInIncludesfalse
NameTypeDirectionDescription
keyStringinProvide the key of the value that has been stored to memory with store. If no value with this key can be found, the Memory adapter throws error MEMADSM/9.
hashMapKeyStringinIn case the stored value is a hash map, you can use hashMapKey to retrieve a dedicated value from the map.
Refer to Using the Memory Adapter with Maps for more information on this.
valueAnyoutReturns the either the stored value, or the map entry.

remove Operation

Remove a value from memory.

  • remove ( key : String, hashMapKey : String, oldValue : Any )
Multiexcerpt
MultiExcerptNameremove
shouldDisplayInlineCommentsInIncludesfalse
NameTypeDirectionDescription
keyStringinProvide the key of the value that has been stored to memory with store. If no value with this key can be found, the Memory adapter throws error MEMADSM/12.
hashMapKeyStringinIn case the stored value is a hash map, you can use hashMapKey to provide the key of a hash map entry you want to remove.
Refer to Using the Memory Adapter with Maps for more information on this.
oldValueAnyoutReturns the value of the memory item that has been removed. In case value contains a hash map, oldValue returns the complete previously stored hash map.

clear Operation

Clear all stored data. No parameters.

Panel
titleOn this Page:
Table of Contents

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameMemoryAdapter_GuessingGame_Example
PageWithExcerptINTERNAL:_designer_examples
shouldDisplayInlineCommentsInIncludesfalse

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameMemoryAdapter_HashMap_Example
PageWithExcerptINTERNAL:_designer_examples
shouldDisplayInlineCommentsInIncludesfalse

Panel
titleRelated Pages:

Otp
Floatingfalse

rp