Using Data Types

The following table lists the extended rule data types and the corresponding Java™ data types for user exits:

Extended Rule
Data Type
Java Data Type
Integer
Int
Real
Double
Datetime
java.util.Date
String
java.lang.String
Object
java.lang.Object

The Translation service automatically converts the extended rule data type to the Java data type and vice versa. As a result, even single-character strings are converted to a String object in java because the “char” datatype is not supported. If the conversion is not completed, the extended rule is immediately terminated and the Translation service writes an error to the translator report.

Objects

Java objects use the data type object. Objects provide properties (data values that can be retrieved or updated) and methods (functions that can be invoked to return a result).

The object must be declared and then created using the new command, passing the full class name of the object and any constructor parameters.

Invoke an object's methods using the syntax:


object.method(parameters)

Invoke an object's properties using the syntax:


object.property