This object enables you to cache the values that you want to read again when you next call the same user-defined function. An instance of the container object is transferred to each user-specific function by using the container parameter.
When using the container object, you do not just temporarily save values for a user-defined function, you also access the following objects as well:
● GlobalContainer object to exchange values between different user-defined functions.
● Map object to access mapping runtime constants.
The following figure shows how the GlobalContainer and Container objects access mapping runtime constants.
Methods of the Container Object
Method(s) |
Use |
void setParameter (String parName, Object obj); |
Saves the obj object under the name parName in a container for a user-specific function. |
Object getParameter (String parName); |
Returns the parameter that was saved under the parName name in this user-specific function by using the setParameter method. If no such parameters exist, getParameter returns null. |
GlobalContainer getGlobalContainer(); |
Returns a GlobalContainer object with which you can save the values that can be read by any user-specific functions in the same message mapping. |
java.util.Map container. getTransformation Parameters() |
Returns a map with the mapping runtime constants. The constants are attributes of the class com.sap.aii.mapping.api.Stream TransformationConstants |