Data Types

The Virtual DataPort catalog includes a group of predefined data types. These types can be divided into two groups: basic types and compound types.

Virtual DataPort data types
<Virtual DataPort data type> ::=
      blob
    | boolean
    | date
    | decimal
    | double
    | float
    | int
    | long
    | text
    | xml
    | <Virtual DataPort compound data type>

<Virtual DataPort compound data type> ::=
      array
    | register

The basic data types supported are:

  • int. Represents an integer number. The maximum value is +2^31-1 (2,147,483,647) and the minimum, -2^31 (-2,147,483,648).
  • long. Represents a long integer number. The maximum value is 2 63 - 1 (9,223,372,036,854,775,807) and the minimum, -2 63 (-9,223,372,036,854,775,808).
  • float. Represents a single-precision 32-bit IEEE 754 floating point. Its range of values is explained in the section Floating-Point Types, Formats, and Values of the Java Language Specification.
  • double. Represents a double-precision 64-bit IEEE 754 floating point. Its range of values is explained in the section Floating-Point Types, Formats, and Values of the Java Language Specification.
  • decimal. Represents a signed decimal number with arbitrary-precision.
  • boolean. Represents a logical value: true or false.
  • text. Represents a character string.
  • date. Represents a date value.
  • blob. Represents a binary data element. Blob data type values cannot take part in query conditions.
  • xml. Represents an XML document (or a fragment of an XML document).

In Virtual DataPort you can define compound data types to model hierarchical data such as the data obtained from SOAP Web services or XML documents. The section Defining a Data Type explains how to define compound types.

The compound data types are:

  • register. Data type that serves to represent data with an internal and heterogeneous structure, i.e. the fields into which the data are subdivided are not all the same type.
  • array. Represents a list of elements of the same register type - therefore, the order of the elements matters.