DATA operator
The DATA operator creates a data property.
Syntax
DATA [LOCAL [NESTED]] returnClass (argumentClass1, ..., argumentClassN)
Description
The DATA operator creates a data property. This property operator cannot be used inside expressions. The data property can be created local by specifying the keyword LOCAL.
This operator cannot be used in the JOIN operator (inside [ ]), since a name must be specified for the data property.
Parameters
-
LOCALA keyword that, when specified, creates a local data property.
-
NESTEDA keyword that, when specified, marks the local property as nested that is, all its changes will be visible in new sessions, and when these sessions are closed, changes to this property will be applied to the current session. Note that this behavior is similar to the behavior of a regular local property (not
NESTED) when using theNEWSESSIONoperator with the specified keywordNESTED LOCAL(or justNESTEDif this local property is explicitly specified in the property list). -
returnClassClass ID of the return value of a property.
-
argumentClass1, ..., argumentClassNA list of class IDs for property arguments.
Examples
CLASS Item;
quantity = DATA LOCAL INTEGER (Item);
CLASS Country;
isDayOff = DATA BOOLEAN (Country, DATE);