什么牌子奶粉最好| 白羊座上升星座是什么| 晚上喝牛奶有什么好处| 丧偶是什么意思| 二甲医院是什么意思| 牙根吸收是什么意思| 软著是什么| 茄子与什么相克| 白果治什么病| 黄痰是什么原因造成的| 女性雄激素过高是什么原因引起的| 山羊吃什么| 喉咙痛吃什么水果好得最快| 红红的苹果像什么| 壁细胞主要分泌什么| 胆囊炎吃什么药效果最好| 济州岛有什么好玩的| 肌酐为什么会升高| 胰腺炎吃什么好| 西罗手表什么档次| 宫闱是什么意思| 阴囊湿疹长什么样图片| 乳腺瘤是什么引起的| 藏青和藏蓝有什么区别| 10月出生是什么星座| 吃什么通便效果最好最快| 国家为什么不承认鬼神| 血糖高有什么反应| 财运亨通是什么意思| 吃什么药通气放屁最快| 反清复明的组织叫什么| 子宫后位是什么意思| 钴蓝色是什么颜色| 雪梨是什么梨| j是什么| 2011属什么生肖| 中药和中成药有什么区别| 加拿大属于什么洲| 干部是什么意思| 低钾血症有什么症状| 黄加红是什么颜色| 水瓶座什么象| 蛔虫是什么| 酱酱酿酿是什么意思| 四月二十四是什么星座| 怎么知道自己缺什么五行| mm代表什么单位| 遗传代谢病是什么意思| 鬼死了叫什么| 燕子吃什么食物| 血滴子是什么意思| 第一次坐飞机注意什么| 靶向治疗是什么意思| 什么水果对皮肤好祛痘| 调制乳粉是什么意思| pinsp呼吸机代表什么| 原则上是什么意思| 中暑吃什么食物好| 脉细滑是什么意思| 什么是心理学| pd-l1是什么| 无创低风险是什么意思| 什么加什么等于粉色| 看灰指甲去医院挂什么科| 作精是什么意思| 孕晚期呕吐是什么原因| buns是什么意思| 脚上长水泡是什么原因| 狗狗吐是什么原因| 梦见狗咬我是什么意思| 三伏天喝什么汤最好| 黑壳虾吃什么| 清炖鸡放什么调料| 兰蔻属于什么档次| nrc是什么意思| 肝火旺失眠吃什么药| 血热是什么症状| 紫米是什么米| 热敷肚子有什么好处| 结核病是什么| 马眼是什么| 六根不净是什么意思| 糖醋里脊用什么淀粉| 奶水不足吃什么| 孩子说话晚是什么原因是什么情况| ncu病房是什么意思| bl是什么意思| 晨五行属什么| mm代表什么| 汗味酸臭是什么原因| 射手座是什么象| 缺钾吃什么水果| 解脲支原体阳性吃什么药| 2022年属什么生肖| 赭是什么颜色| 大黄和芒硝混合外敷有什么作用| 爱华仕是什么档次| 姑息治疗是什么意思| 螨虫是什么样子的| 维生素b6有什么作用和功效| 腺肌症是什么病| 胸闷什么原因| 任性的女孩有什么特点| 什么食物可以降血糖| 女性安全期是什么时候| 耍宝是什么意思| 佛跳墙是什么意思| 静脉曲张挂号挂什么科| 阴道瘙痒是什么原因造成的| 乐得什么填词语| 痛风吃什么消炎药| 么么什么意思| 陈醋和蜂蜜一起喝有什么好处| 脾胃不好可以吃什么水果| 烟酒不沾的人什么性格| 一穷二白是什么意思| 畸胎瘤是什么病| 鸟喙是什么意思| 螃蟹吃什么| 什么地流| 喉咙有痰是什么原因引起的| 长方形脸适合什么发型| 什么是女人味| 月经期能吃什么水果| 钉钉是什么| 无国界医生是什么意思| 什么什么不得| 嘉靖为什么不杀严嵩| 大象鼻子为什么那么长| prc是什么意思| 梦见香蕉是什么意思| 肺结节不能吃什么食物| 复刻鞋是什么意思| 傍家儿是什么意思| 客观原因是什么意思| 肺气肿用什么药效果好| 旖旎风光是什么意思| 尿道感染是什么原因引起的| 葫芦藓是什么植物| 买二手苹果手机要注意什么| macd什么意思| gerd是什么病| 老是嗜睡是什么原因| 免疫组化是什么| 字母圈是什么意思| 排尿少是什么原因| 生不如死是什么生肖| 真菌感染是什么意思| 老年斑是什么原因引起的| 公关是干什么的| 泡脚出汗有什么好处| 熟褐色是什么颜色| 媛交是什么意思| 7.10是什么日子| 喝冰美式有什么好处| 检验葡萄糖用什么试剂| 烊化是什么意思| 双非是什么| 什么叫钝角| 上眼皮突然肿了是什么原因| 为什么会长痔疮| 和南圣众是什么意思| 搬家下雨是什么兆头| 淋是什么意思| 西凤酒是什么香型| 指甲缝疼是什么原因| 治疗带状疱疹用什么药最好| 甘油三酯高是什么原因| 牙膏洗脸有什么好处和坏处| u是什么元素| 北是什么生肖| 伊人是什么意思| 103是什么意思| 肾结石吃什么比较好| 肛门痛是什么原因| 过敏吃什么药| 奶油色是什么颜色| 什么原因导致高血压| 面瘫吃什么药好| o型血为什么叫熊猫血| 胆结石吃什么药可以化掉结石| 逾期不候什么意思| 蝼蛄吃什么| 一树梨花压海棠什么意思| 自缢死亡是什么意思| 六月初三是什么星座| 家政是干什么的| 副市长是什么级别| 梦见朋友结婚是什么意思| 宝宝屁多是什么原因| 海南有什么水果| member是什么意思| bbox是什么意思| 豆腐鱼是什么鱼| 恢复伤口的鱼叫什么鱼| 热水器什么品牌好| 返点是什么意思| 百草枯什么味道| 脉搏跳得快是什么原因| 有什么烟| hpv6阳性是什么意思| 大蒜不能和什么一起吃| 卖淫什么意思| 松子吃多了有什么害处| 乳房胀痛什么原因| 木堂念什么| 坐骨神经吃什么药| 去医院看嘴唇挂什么科| 教师节送什么礼物好| 甲状腺偏高有什么影响| 月经咖啡色是什么原因| 阴道发白是什么原因| 什么水果是碱性的| 吃葡萄干对身体有什么好处| 吃腰果有什么好处| 2月15日什么星座| 欧巴桑什么意思| 白眼球发黄是什么原因| 民不聊生是什么意思| 小三最怕什么| 单核细胞百分比偏高什么原因| 114514什么意思| 创伤性关节炎有什么症状| 尿白细胞定量高是什么意思| 胡萝卜什么颜色| 大荔冬枣什么时候成熟| 宫颈活检lsil是什么病| 什么的医术| 水烧开后有白色沉淀物是什么| 盐酸安罗替尼胶囊主要治疗什么| 来褐色分泌物是什么原因| 伪娘是什么| 天麻泡水喝有什么功效| 生意兴隆是什么生肖| 澍在人名中读什么| 悄悄的什么| 浅黄色是什么颜色| cpi是什么意思| 炖大骨头放什么调料| 吃什么可以缓解焦虑| 喉咙发甜是什么原因| 看腋臭挂什么科| imei是什么意思| 手到擒来是什么意思| 临界心电图是什么意思| 留低是什么意思| 两个c是什么牌子| 泥丸宫在什么位置| 什么男什么女的成语| 腹胀吃什么药最有效| 什么烟比较好抽| 所以我求求你别让我离开你是什么歌| 三十岁是什么之年| 血稠吃什么药| 陶渊明是什么先生| 口腔溃疡缺少什么维生素| 吃藕粉对身体有什么好处| 供血不足吃什么药效果最好| 平安夜做什么| min代表什么| 1945属什么生肖| 农历五月二十四是什么日子| 合作医疗是什么| 鸡的守护神是什么菩萨| 百度

“列车新城”呼啸而来 龙湖引领被动房中国式创新

百度   为期4天的2018短道速滑世锦赛3月19日凌晨在加拿大蒙特利尔落幕,中国队获得一银三铜,位列奖牌榜第三。

EGL (Enterprise Generation Language), originally developed by IBM and now available as the EDT (EGL Development Tools)[1] open source project under the Eclipse Public License (EPL), is a programming technology designed to meet the challenges of modern, multi-platform application development by providing a common language and programming model across languages, frameworks, and runtime platforms.

EGL
(Enterprise Generation Language)
DeveloperIBM
LicenseEclipse Public License
Websitewww.eclipse.org/edt/

Overview

edit

The language borrows concepts familiar to anyone using statically typed languages like Java, COBOL, C, etc. However, it borrows the concept of stereotype from Unified Modeling Language (UML) that is not typically found in statically typed programming languages. In a nutshell, EGL is a higher-level, universal application development language.

EGL is similar in syntax to other common languages so it can be learned by application developers with similar previous programming background. EGL application development abstractions shield programmers from the technical interfaces of systems and middleware allowing them to focus on building business functionality. EGL applications and services are written, tested and debugged at the EGL source level, and once they are satisfactorily functionally tested they can be compiled into COBOL, Java, or JavaScript code to support deployment of business applications that can run in any of the following environments:

Code examples

edit

Program

edit

An EGL Program part is a generatable logic part with one entry point. Each Program part contains a main() function, which represents the logic that runs at program start up. A program can include other functions and can access functions that are outside of the program. The function main() can invoke those other functions. Program functions are composed of a set of EGL statements, variables, and constants.

Program HelloWorld

	const GREETING string = "Hello, ";
    
	function main()
		myName string = "John";
		sayHello(myName);
	end

	function sayHello(name String in)
		SysLib.writeStdOut(GREETING + name + "!");
	end

end

Record

edit

An EGL Record part defines a set of data elements. In this example, a record with the name CustomerRecord is defined with 6 fields.

Record CustomerRecord type BasicRecord
	customerNumber INT;            
	customerName STRING;
	customerAddr1 STRING;
	customerAddr2 STRING;
	customerAddr3 STRING;
	customerBalance MONEY;
end

EGL has a specialized type of record called SQLRecord that is used to exchange data with a relational database.

record Employee type sqlRecord { tableNames =[["Employee"]], keyItems =[EMPNO]}
    EMPNUMBER string{ column = "EMPNO", maxLen = 6};
    FIRSTNME string{ sqlVariableLen = yes, maxLen = 12};
    MIDINIT string{ isSqlNullable = yes, maxLen = 1};
    LASTNAME string{ sqlVariableLen = yes, maxLen = 15};
    DEPT string{ column = "WORKDEPT", isSqlNullable = yes, maxLen = 3};
    PHONENO string{ isSqlNullable = yes, maxLen = 4};
    HIREDATE date{ isSqlNullable = yes};
end
  • In this example, the record Employee is bound to a table (or view) named Employee.

Service

edit

An EGL Service part contains public functions meant to be accessed from other applications or systems. In this example, a service with two functions is defined.

package com.mycompany.services;

service EmployeeService

    function getEmployees() returns(Employee[])
        records Employee[0]; // define an empty array of records
        get records; // retrieve records from the database
        return (records); // return the records       
    end
    
    function addEmployee(emp Employee in) returns (boolean)
    	try
    		add remp;
    		return (true);
    	onException (ex AnyException)
    		return (false);
    	end
    end

end
  • In EGL, code is organized in packages (like Java (programming language))
  • The first function, getEmployees, returns an array of records populated from the records in a database.
  • The second function, addEmployee adds a new record to the database and returns a true or false depending on whether the record was added successfully.

RUIHandler

edit

The main component of a Rich UI application is a Rich UI handler part. These parts are generated into JavaScript.

package com.mycompany.ui;

import com.mycompany.services.Employee;
import com.mycompany.services.EmployeeService;
import dojo.widgets.DojoGrid;
import dojo.widgets.DojoGridColumn;

handler EmployeeView type RUIhandler { initialUI = [ grid ], 
                                       onConstructionFunction = start, 
                                       cssFile = "main.css" }

    grid DojoGrid { behaviors = [ ], headerBehaviors = [ ], columns = [
                    new DojoGridColumn { displayName = "First Name", name = "FIRSTNAME" },
                    new DojoGridColumn { displayName = "Last Name", name = "LASTNAME" },
                    new DojoGridColumn { displayName = "Salary", name = "SALARY" }
            ] };

    function start()
        svc EmployeeService { };
        call svc.getEmployees () returning to displayEmployees;
    end

    function displayEmployees(retResult Employee [ ] in)
        grid.data = retResult as any [ ];
    end
    
end

Web 2.0 with EGL

edit

In December 2008, IBM introduced new technology, EGL Rich UI, to simplify the creation of Web 2.0-style rich web applications. This technology simplifies development by hiding the complexities of Ajax, JavaScript, REST, and SOAP from the developer, which enables them to focus on the business requirement and not on the underlying technologies.

Commercial products

edit

EGL programming tools are available as an Eclipse-based[2] commercial product, the Rational Business Developer and also in the EGL edition of Rational Developer for System z.

EGL is a target language for modernization of legacy applications because of the language semantics affinity with procedural languages and legacy 4th generation languages:

  • a set of conversion tools available within the Rational Business Developer product provide automated the conversion from older and stabilized IBM and Informix 4th generation languages
  • a set of IBM service offerings and complementary products (Rational Migration Extension for Natural, Rational Migration Extension for System i, Rational Migration Extension for CA-products) provide the ability to convert from Software AG Natural, IBM RPG, CA Cool:Gen and CA Ideal/Datacom to EGL

Tools for searching large EGL code bases, comparing individual EGL files for changes, and detecting duplicated code are available from Semantic Designs[3]

References

edit
  1. ^ EDT (EGL Development Tools)
  2. ^ Eclipse
  3. ^ "Semantic Designs". Archived from the original on 2025-08-14. Retrieved 2025-08-14.

Further reading

edit
edit
幼儿急疹吃什么药 生殖疱疹用什么药效果好 间作套种是什么意思 高铁上不能带什么 经常按摩头皮有什么好处
为什么手老是出汗 梦见被鱼咬是什么意思 鹦鹉吃什么水果 point是什么意思 说话不清楚去医院挂什么科
挪威用什么货币 什么是巨细胞病毒 左右逢源是什么生肖 杜甫世称什么 射手是什么星象
身体年龄是什么意思 阳瘘的最佳治疗方法是什么 声色什么 吃止疼药有什么副作用 心肌缺血吃什么食物好
什么是穿刺手术hcv7jop5ns5r.cn 脱发应该挂什么科室hcv8jop0ns5r.cn 全身检查要挂什么科hcv9jop0ns1r.cn 吃饭后胃疼是什么原因hcv8jop5ns9r.cn ala是什么hcv9jop7ns1r.cn
三金片有什么副作用hcv9jop8ns2r.cn 沮丧是什么意思tiangongnft.com 胆固醇偏高有什么危害hcv9jop8ns0r.cn 小孩出虚汗是什么原因hcv9jop6ns1r.cn 国家安全法属于什么法hcv7jop9ns8r.cn
感染幽门螺杆菌吃什么药gysmod.com aaa是什么意思hcv8jop4ns5r.cn 梦到捉鱼是什么意思hcv9jop0ns7r.cn 东北是什么气候hcv8jop9ns3r.cn 七月五号是什么星座hcv9jop7ns2r.cn
性质是什么hcv8jop1ns5r.cn 鸡蛋白是什么hcv8jop6ns8r.cn 神机妙算是什么意思hcv8jop9ns0r.cn 减肥最好的办法是什么hcv8jop2ns0r.cn 什么的小球hcv8jop2ns3r.cn
百度