. . .

Data types

ApiOmat uses a variety of datatypes, which can be selected when creating attributes. Most of the datatypes are mapped to the underlying JAVA datatypes and have a specific value range; the following table will explain the mappings and ranges.

Simple datatypes

ApiOmat Name

JAVA Mapping

value range / storage

String

java.util.String

maximum of 2 31 - 1 chars

Double

double

double-precision 64-bit IEEE 754 floating point

Long

long

minimum value of -2 63 and a maximum value of 2 63 -1

Date

java.util.Date

stores dates in a long as milliseconds using 1970-01-01 as a reference

Location

java.lang.Double[]

array of double (latitude/longitude)

Complex types

ApiOmat Name

JAVA Type

notes

Map

java.util.Map

object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value

File / Image

java.io.InputStream

Binary data stored in the underlying MongoDB and handled as InputStream in JAVA.

References

References refer to other existing classes. Their value range depends on the selected datatype.