uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

18.2.2 Available data types

You can specify the following data types for the POJO fields and Bean properties.

Table 18-2 Available data types for the POJO fields and Bean properties (POJO to JSON mapping)

No. Data
1 Primitive int
2 short
3 long
4 float
5 double
6 char
7 byte
8 boolean
9 Wrapper class Integer
10 Short
11 Long
12 Float
13 Double
14 Character
15 Byte
16 Boolean
17 java.lang.String
18 java.math.BigInteger
19 java.math.BigDecimal
20 java.util.Date
21 java.util.Calendar
22 java.lang.Enum
23 POJO#1
24 java.util.List<T>#2
25 java.util.Set<T>#2
26 java.util.Map<T,T>#2
27 An Array containing any item from No.1 through 26#2

#1
You can recursively have a POJO as a field or aBean property. For conditions of a supported POJO, see 18.2 POJO to JSON mapping.

#2
The type of T is any one item listed in No. 1 through 26 in the above table.

Notes: