This table provides mapping information for various MBO datatypes to those of the mobile device target language.
The optional "?" suffix indicates the datatype supports nullability. In some cases, a nullable target language type might be used for a non-nullable MBO type. In either case, the nullability indicator should always be specified if the target type must support nulls.
Any referenced type name that does not appear in the table is expected to be one
of the following:
- The name of a class defined within the same package.
- The fully qualified name of a class defined in a previously
compiled package.
- The name of an imported class.
- The name of an external class.
MBO to Java RIM datatype mappingsMBO datatype |
Java RIM types |
BOOLEAN |
boolean |
BOOLEAN? |
java.lang.Boolean |
STRING |
java.lang.String |
STRING? |
java.lang.String |
BINARY |
byte[] |
BINARY? |
byte[] |
CHAR |
char |
CHAR? |
java.lang.Character |
BYTE |
byte |
BYTE? |
java.lang.Byte |
SHORT |
short |
SHORT? |
java.lang.Short |
INT |
int |
INT? |
java.lang.Integer |
LONG |
long |
LONG? |
java.lang.Long |
INTEGER |
java.math.BigInteger
(javamx.math.BigInteger) |
INTEGER? |
java.math.BigInteger
(javamx.math.BigInteger) |
DECIMAL |
java.math.BigDecimal
(javamx.math.BigDecimal) |
DECIMAL? |
java.math.BigDecimal
(javamx.math.BigDecimal) |
FLOAT |
float |
FLOAT? |
java.lang.Float |
DOUBLE |
double |
DOUBLE? |
java.lang.Double |
DATE |
java.util.Date |
DATE? |
java.util.Date |
TIME |
java.util.Date |
TIME? |
java.util.Date |
DATETIME |
java.util.Date |
DATETIME? |
java.util.Date |
MBO to Java Android datatype mappingsMBO datatype |
Java Android types |
BOOLEAN |
boolean |
BOOLEAN? |
java.lang.Boolean |
STRING |
java.lang.String |
STRING? |
java.lang.String |
BINARY |
byte[] |
BINARY? |
byte[] |
CHAR |
char |
CHAR? |
java.lang.Character |
BYTE |
byte |
BYTE? |
java.lang.Byte |
SHORT |
short |
SHORT? |
java.lang.Short |
INT |
int |
INT? |
java.lang.Integer |
LONG |
long |
LONG? |
java.lang.Long |
INTEGER |
java.math.BigInteger |
INTEGER? |
java.math.BigInteger |
DECIMAL |
java.math.BigDecimal |
DECIMAL? |
java.math.BigDecimal |
FLOAT |
float |
FLOAT? |
java.lang.Float |
DOUBLE |
double |
DOUBLE? |
java.lang.Double |
DATE |
java.sql.Date |
DATE? |
java.sql.Date |
TIME |
java.sql.Time |
TIME? |
java.sql.Time |
DATETIME |
java.sql.Timestamp |
DATETIME? |
java.sql.Timestamp |
MBO to C# device datatype mappingsMBO datatype |
C# type |
BOOLEAN |
bool |
BOOLEAN? |
bool? |
STRING |
string |
STRING? |
string |
BINARY |
byte[] |
BINARY? |
byte[] |
CHAR |
char |
CHAR? |
char? |
BYTE |
byte |
BYTE? |
byte? |
SHORT |
short |
SHORT? |
short? |
INT |
int |
INT? |
int? |
LONG |
long |
LONG? |
long? |
INTEGER |
decimal |
INTEGER? |
decimal? |
DECIMAL |
decimal |
DECIMAL? |
decimal? |
FLOAT |
float |
FLOAT? |
float? |
DOUBLE |
double |
DOUBLE? |
double? |
DATE |
System.DateTime |
DATE? |
System.DateTime? |
TIME |
System.DateTime |
TIME? |
System.DateTime? |
DATETIME |
System.DateTime |
DATETIME? |
System.DateTime? |
MBO to ObjectiveC device datatype mappingsMBO datatype |
iOS ObjectiveC type |
BOOLEAN |
bool |
BOOLEAN? |
NSNumber* |
STRING |
NSString* |
STRING? |
NSString* |
BINARY |
NSData* |
BINARY? |
NSData* |
CHAR |
unichar |
CHAR? |
NSString* |
BYTE |
signed char |
BYTE? |
NSNumber* |
SHORT |
short |
SHORT? |
NSNumber* |
INT |
int32_t |
INT? |
NSNumber* |
LONG |
Int64_t |
LONG? |
NSNumber* |
INTEGER |
NSNumber* |
INTEGER? |
NSNumber* |
DECIMAL |
NSNumber* |
DECIMAL? |
NSNumber* |
FLOAT |
float |
FLOAT? |
NSNumber* |
DOUBLE |
double |
DOUBLE? |
NSNumber* |
DATE |
NSDate* |
DATE? |
NSDate* |
TIME |
NSDate* |
TIME? |
NSDate* |
DATETIME |
NSDate* |
DATETIME? |
NSDate* |
MBO to VB.NET datatype mappingsMBO datatype |
VB.NET type |
BOOLEAN |
boolean
|
BOOLEAN? |
nullable(of boolean)
|
STRING |
string |
STRING? |
string |
BINARY |
byte() |
BINARY? |
byte() |
CHAR |
char
|
CHAR? |
nullable(of char) |
BYTE |
byte
|
BYTE? |
nullable(of byte) |
SHORT |
short |
SHORT? |
nullable(of short) |
INT |
integer |
INT? |
nullable(of integer) |
LONG |
long |
LONG? |
nullable(of long) |
INTEGER |
decimal |
INTEGER? |
nullable(of decimal) |
DECIMAL |
decimal |
DECIMAL? |
nullable(of decimal) |
FLOAT |
single |
FLOAT? |
nullable(of single) |
DOUBLE |
double |
DOUBLE? |
nullable(of double) |
DATE |
date |
DATE? |
nullable(of date) |
TIME |
date |
TIME? |
nullable(of date) |
DATETIME |
date |
DATETIME? |
nullable(of date) |