NonStop Server for Java (NSJ) Tools Reference Pages (NSJ 2.0+)
item-type
item-name,class-type[,language],char-string-type
Note: item-type must be the first entry on its line and
item-name must appear next. The other options can be in any
order. Do not put spaces between item-name, class-type,
language, and char-string-type.
where:
item-type
Specifies the DDL type of the data item--DEF[INITION] or
REC[ORD].
item-name
Specifies the name of the DDL record or definition.
class-type
Specifies the type of class to be generated--RQ (request), RP (reply), or
BOTH.
language
Specifies the language in which the TS/MP server is written--C or COBOL.
The default is the language that the option -l specifies. If -l is omitted,
the default is COBOL.
char-string-type
Specifies the type of strings that the server expects--NT (null-terminated)
or NN (not null-terminated).
-l [C | COBOL]
Specifies the language in which the TS/MP server is written.
-p package-name
Specifies the name to be used for the package statement in the generated .java
source code. package-name must conform to the unique package-naming
scheme proposed by Sun Microsystems.
-v
Causes ddl2java to print additional messages about what it is doing, including
a list of the set and get methods generated for each request and reply.
Description
ddl2java generates a .java source file for each data description (definition or
record) that the specified input file contains. With the -c option, ddl2java also
compiles the generated source files. You can use the resulting class files with the
TsmpServer class to send requests to and receive replies from TS/MP legacy servers.
For each request/reply data description, ddl2java generates: