NonStop Server for Java (NSJ) Tools Reference Pages (NSJ 2.0+)
private String c;
private String d;
For classes generated for request IPCs, execute the set method for the variable you
want to use. If you use multiple set methods for variables that redefine each other,
results are unpredictable. For predictable results, either use only the set method for
the variable you want or use the clear method for each unwanted redefinition of the
variable.
For classes generated for reply IPCs, the conversion method sets all members of the
union/redefinition to the value returned by TsmpServerRequest(). It is your
responsibility to determine which member to use.
Generated set and clear Methods
ddl2java creates a set method name from a Java instance variable name by
upshifting the first letter of the Java instance variable name and adding the prefix set.
Because all instance variable names are unique within a class, all set methods within
the generated class are unique.
For classes associated with request IPCs, ddl2java generates set methods that you
can use to supply values for TsmpServerRequest(). For the following DDL data
description:
def getEmployee.
02 request_code pic 99.
02 empnum pic 9(4).
end
ddl2java generates the following methods:
public void setRequest_code(String s) {
...
}
public void setEmpnum(String s) {
...
}
ddl2java also generates clear methods that you can use to clear values previously
set. Cleared values are set to null. Cleared (null) values are not inserted into the request
IPC buffer that TsmpServer.service() sends to the legacy server.
Generated get Methods
ddl2java creates a get method name from a Java instance variable name by
upshifting the first letter of the Java instance variable name and adding the prefix get.
Because all instance variable names are unique within a class, all get methods within