The Data class is a parent abstract class from which all OMM containers, messages, and primitives inherit. Data provides interfaces common across all its children, which in turn enables down-casting operations. The Data class and all classes that inherit from it are optimized for efficiency and built so that data can be easily accessed. Though all primitive data types are represented by classes that inherit from the Data class, the ease-of-use interfaces do not return such references: all primitive data types are returned by their intrinsic representation.
WARNING! The Data class and all classes that inherit from it are designed as temporary and short-lived objects. For this reason, do not use them as storage or caching devices.
The Enterprise Message API does not support immediately retrieving data from freshly created OMM containers or messages. The following code snippet demonstrates this restriction: