| |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
-> Java知识库 -> PO JAVA Mapping 映射运行时常量 -> 正文阅读 |
|
[Java知识库]PO JAVA Mapping 映射运行时常量 |
Special Access to Mapping Runtime ConstantsUseIn some mapping programs it may be necessary to access fields in the message header. For this purpose, the mapping runtime saves the field values as key-value pairs. Examples of Key-Value Pairs in the Map for Runtime Constants
The keys are derived from the field names of the fields in the message header. Access Using String Constants Instead of Keys (Standard Case) To be able to read the fields of the message header at runtime, you must access the map for the runtime constants. However, if you were to access the map by using the keys specified above and one of the keys were to change, the program code would be rendered invalid. For this reason, the mapping API provides string constants that can be used to access the map in place of the keys. String Constants for Accessing the Runtime Constants in the Map
How the access works varies according to where you want to query the runtime constants:
Accessing the Runtime Constants by Using Keys (Special Case) In certain exceptional and unavoidable cases, it may be necessary to use the keys to access the fields in the message header. This is always the case when you want to access the contents of the map by means of a variable. In the example below, a variable key?key?, which is to be used to read a field in the message header, is transferred to a user-defined function of a message mapping. You can only use a variable to access the map if the variable has the name of the key as its value and not the name of the string constant. String headerField; java.util.Map map; // get runtime constant map map = container.getTransformationParameters(); // get value of header field by using variable key headerField = (String) map.get(key); For example, to read the message ID from the message header, the variable?key?must have the value MessageId and not MESSAGE_ID. ? ?? Managing Services in the Enterprise Services Repository?Special Access to Mapping Runtime Constants |
|
|
上一篇文章 下一篇文章 查看所有文章 |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 | -2024/11/23 19:09:56- |
|
网站联系: qq:121756557 email:121756557@qq.com IT数码 |