Thanks Dieter, I'll test as soon as possible.

Best regards

--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco

2015-12-09 20:21 GMT+01:00 D*B <dieter.bender@xxxxxxxxxxxx>:

... a Datastructure in reality is some binary data with a misleading name
...structure. Java hasn't such things and you would need some very ugly
jt400 components to try to translate the binary huddle to well defined
data. There is a class com.ibm.as400.access.RecordFormat, but you could put
any shist to this class, without any complaints of bad data, and it will
crash, if you would try to get a singel field of the "structur" back.

I'm following a PORDS2POJO pattern to translate a PORDS (plain old RPG
DataStructure) to a POJO (plain old Java object) encapsulating all ugly
stuff as binary data and strange converting methods of jt400. You will get
some impression, looking to the classes in the packages
de.bender_dv.ardgate.pord2pojo. You will find the sources at
http://appserver4rpg.cvs.sourceforge.net/viewvc/appserver4rpg/appserver4rpg/src/de/bender_dv/ardgate/pords2pojo/
.
Most of the Beans are only support one direction, composing a DS from a
Java Bean or translating a DS to a Java Bean.

D*B
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.