Proxies with Common Temp-Table Definitions

GregTomkins

Active Member
I have 2 .R's, let's call them p1.r and p2.r, that do different things, but each accepts an INPUT TEMP-TABLE that is absolutely identical (including names, types, etc.), let's call it t.

If I ProxyGen these:

1) In Java, the TT is generated as a ResultSet or ProDataGraph. The fields are accessed by name as strings, analogous to dynamic queries in P4GL, and the proxy has no direct knowledge of them (eg. there is no .java file to define a class equivalent to the TT).

2) In Web Services, the TT is generated in such a way that WSDL toolkits will generate two identical classes.... well, identical except that one is named something like p1_t and the other p2_t.

I understand that one cannot assume that TT's defined in separate .R's with the same name are identical, but when they are, as is hugely common in our code base, this is awkward because it clutters up Java with tons of classes that could be narrowed down to a single class.

Does anyone have any suggestion of how to deal with this?
 
Top