Jump to: navigation, search

Difference between revisions of "EDT:EGL Language conversion"

Line 47: Line 47:
 
| Not Supported right now, no replacement
 
| Not Supported right now, no replacement
 
|-
 
|-
| Money, num, bin<br>  
+
| money, num, bin<br>  
 
| use Decimal<br>
 
| use Decimal<br>
 
|}
 
|}
Line 64: Line 64:
  
 
|-
 
|-
| currentDate()<br>DateTimeLib.currentDate()<br>
+
| currentDate()<br>DateTimeLib.currentDate()<br>  
 
| When you declare aDate data, aDate should be inited with the current date<br>
 
| When you declare aDate data, aDate should be inited with the current date<br>
 
|-
 
|-
| currentTime()<br>DateTimeLib.currentTime()<br>
+
| currentTime()<br>DateTimeLib.currentTime()<br>  
 
| Not Supported<br>
 
| Not Supported<br>
 
|-
 
|-
Line 73: Line 73:
 
| When you declare temp timestamp, temp is inited with the current timestamp<br>
 
| When you declare temp timestamp, temp is inited with the current timestamp<br>
 
|-
 
|-
| StrLib.usaDateFormat<br>StrLib.eurDateFormat<br>StrLib.jisDateFormat<br>StrLib.isoDateFormat<br>
+
| StrLib.usaDateFormat<br>StrLib.eurDateFormat<br>StrLib.jisDateFormat<br>StrLib.isoDateFormat<br>  
 
| Constants.usaDateFormat<br>Constants.eurDateFormat<br>Constants.jisDateFormat<br>Constants.isoDateFormat<br>
 
| Constants.usaDateFormat<br>Constants.eurDateFormat<br>Constants.jisDateFormat<br>Constants.isoDateFormat<br>
 
|-
 
|-
| StrLib.usaTimeFormat<br>StrLib.eurTimeFormat<br>StrLib.jisTimeFormat<br>StrLib.isoTimeFormat<br>
+
| StrLib.usaTimeFormat<br>StrLib.eurTimeFormat<br>StrLib.jisTimeFormat<br>StrLib.isoTimeFormat<br>  
 
| Not Supported<br>
 
| Not Supported<br>
 
|-
 
|-
| StrLib.db2StampFormat<br>StrLib.odbcTimeStampFormat<br>
+
| StrLib.db2StampFormat<br>StrLib.odbcTimeStampFormat<br>  
 
| Constants.db2StampFormat<br>Constants.odbcTimeStampFormat<br>
 
| Constants.db2StampFormat<br>Constants.odbcTimeStampFormat<br>
 
|-
 
|-
| <br>
+
| <br>  
 
| <br>
 
| <br>
 
|-
 
|-
Line 161: Line 161:
 
| <br>
 
| <br>
 
|-
 
|-
| javaScriptName=xxx<br>
+
| javaScriptName=xxx<br>  
 
| use externalName=xxx<br>
 
| use externalName=xxx<br>
 +
|-
 +
| d Dictionary{ordering=byInsertion}<br>d Dictionary{ordering=byKey}<br>
 +
| d Dictionary = new Dictionary(true, OrderingKind.byInsertion)<br>d Dictionary = new Dictionary(true, OrderingKind.byKey)<br>The default for caseSensitive is false <br>
 +
|-
 +
| aString string[0]{maxSize=10};<br>anInt int = aString.getMaxSize();<br>
 +
| Not Supported<br>
 
|}
 
|}
  

Revision as of 03:20, 18 October 2011

EGL language conversion consideration from RBD/EGLCE

RBD/EGL CE EDT
Called program Not supported
DataItem,
Stand alone (top level) function
Not supported right now
Datatable,
Structured Record,
Form,
FormGroup
Not supported
Nullable
RBD/EGL CE EDT
Default is inout Default is inout for value type

Default is in for reference type

RBD/EGL CE EDT
time replaced with timestamp
interval Not Supported right now, no replacement
money, num, bin
use Decimal
RBD/EGL CE EDT
system libraries all needs to be fully qualified with library name
 i.e. sysLib, dateTimeLib, serviceLib, xmlLib...etc.
currentDate()
DateTimeLib.currentDate()
When you declare aDate data, aDate should be inited with the current date
currentTime()
DateTimeLib.currentTime()
Not Supported
currentTimeStamp()
DateTimeLib.currentTimeStamp()
When you declare temp timestamp, temp is inited with the current timestamp
StrLib.usaDateFormat
StrLib.eurDateFormat
StrLib.jisDateFormat
StrLib.isoDateFormat
Constants.usaDateFormat
Constants.eurDateFormat
Constants.jisDateFormat
Constants.isoDateFormat
StrLib.usaTimeFormat
StrLib.eurTimeFormat
StrLib.jisTimeFormat
StrLib.isoTimeFormat
Not Supported
StrLib.db2StampFormat
StrLib.odbcTimeStampFormat
Constants.db2StampFormat
Constants.odbcTimeStampFormat


XMLLib.convertToXML(eglType any)
XMLLib.convertToXML(eglType any, document boolean)
Use XMLLib.convertToXML(eglType any, document boolean)
ServiceLib.convertFromJSON(json string,eglType any)
JsonLib.convertFromJSON(json string,eglType any)
ServiceLib.convertToJSON(eglType any)
JsonLib.convertToJSON(eglType any)
RBD/EGL CE EDT
call host program

call local program

Move statement

Not supported right now

RBD/EGL CE EDT
matches no longer an operator, have to use String matchesPattern() function instead
like no longer an operator, have to use String isLike function instead
bitwise operators support for int types only. RBD supports SmallInt as well
RBD/EGL CE EDT
basicLibrary no more basicLibrary
annotation on Library no annotation is supported on library
RuntimeException
no more RuntimeException, use AnyException
IndexOutOfBoundException
InvalidIndexException
PGM includeReferencedFunctions=yes
top level function are not supported
PGM allowUnqualifiedItemReferences = yes
must fully qualify part names
XMLStructure = xmlStructurekind
XMLValue {kind = xmlStructurekind.
FORMName

javaScriptName=xxx
use externalName=xxx
d Dictionary{ordering=byInsertion}
d Dictionary{ordering=byKey}
d Dictionary = new Dictionary(true, OrderingKind.byInsertion)
d Dictionary = new Dictionary(true, OrderingKind.byKey)
The default for caseSensitive is false
aString string[0]{maxSize=10};
anInt int = aString.getMaxSize();
Not Supported


A note on deployment descriptor files (*.egldd):

The model for these files is different in EDT so you cannot reuse deployment descriptors from RBD. If you have a *.egldd file that's in the old format, and you want to "reset" it to be empty, you can open it with a text editor and replace it with the following:

<?xml version="1.0" encoding="UTF-8"?>
<egl:deployment xmlns:egl= "http://www.eclipse.org/xmlns/edt/deployment/1.0" >
</egl:deployment>