<< Click to Display Table of Contents >> Navigation: Technical Guide > Types |
DTS accesses various data sources with various type architectures and needs to provide a middle layer to facilitate translation of data between all the native types.
This section lists all of the data types defined in the DTS middleware (we'll simply call them DTS Types) and how they relate to generic Java client types, as well webservice client XSD types and OpenAPI types.
DTS Type |
Java Type |
XSD Type |
OpenAPI Type |
STRING |
java.lang.String |
xs:string |
string |
INT8 |
java.lang.Byte |
xs:byte |
integer |
INT16 |
java.lang.Short |
xs:short |
integer |
INT32 |
java.lang.Integer |
xs:int |
integer |
INT64 |
java.lang.Long |
xs:long |
integer |
UNSIGNED_INT8 |
java.lang.Short |
xs:short |
integer |
UNSIGNED_INT16 |
java.lang.Integer |
xs:int |
integer |
UNSIGNED_INT32 |
java.lang.Long |
xs:long |
integer |
UNSIGNED_INT64 |
java.math.BigInteger |
xs:short |
integer |
BIG_INTEGER |
java.math.BigInteger |
xs:integer |
integer |
FLOAT |
java.lang.Float |
xs:float |
number |
DOUBLE |
java.lang.Double |
xs:double |
number |
DECIMAL |
java.math.BigDecimal |
xs:decimal |
number |
BOOLEAN |
java.lang.Boolean |
xs:boolean |
boolean |
DATE |
java.time.LocalDate |
xs:date |
string |
DATE_TIME |
java.time.Instant |
xs:dateTime |
string |
TIME |
java.time.Instant |
xs:time |
string |
DTS_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJson |
[custom]* |
[custom]** |
DTS_POINT_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonPoint |
[custom]* |
[custom]** |
DTS_LINE_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonLineString |
[custom]* |
[custom]** |
DTS_AREA_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonPolygon |
[custom]* |
[custom]** |
DTS_ANNOTATION_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonPoint |
[custom]* |
[custom]** |
DTS_MULTIPOINT_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonMultiPoint |
[custom]* |
[custom]** |
DTS_MULTILINE_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonMultiLineString |
[custom]* |
[custom]** |
DTS_MULTIAREA_GEOMETRY |
com.alloy.dts.type.json. geojson.GeoJsonMultiPolygon |
[custom]* |
[custom]** |
DTS_GEOGRAPHY |
com.alloy.dts.type.json. geojson.GeoJson |
[custom]* |
[custom]** |
DTS_PREDICATE |
com.alloy.dts.model. DTSPredicate |
[custom]*** |
[custom]*** |
(*) Geometry Types have custom defined XSD Types, which are fully described in the DTS Service's WxDL file.
If the particular DTS service is a SOAP service, objects in these fields will only have the geoJsonString field populated with a JSON representation of the respective Java Type (see Geometry Structure).
(**) Geometry Types have custom defined OpenApi Types which are fully described in the DTS Service's OpenApi file.
This description will actually describe the respective Java Type in JSON format (see Geometry Structure).
(***) Predicates are represented in in XSD and OpenAPI as custom types, describing the structure of the Java Object in XML or JSON format.
Read more about Predicate structure here.
Read more about XSD Types here.
Some OpenAPI Types will have format restrictions to reflect the original DTS Type. More info here.
To see how the DTS Types relate to a specific data source's native types, please see the Types section of the respective Connector