uCosminexus Application Server, EJB Container Functionality Guide

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

2.4.1 Range of Java data type supported in CMP

The following table describes the range of Java data types supported in the CMP Entity Bean of an EJB container and also describes the availability of specifications for the primary key:

Table 2-10 Range of Java data types supported in CMP

Java data type Range of values Specification to the primary key
boolean true, false N
java.lang.Boolean Y
byte -128 to 127 N
java.lang.Byte Y
char '\u0000' to '\uffff'(0 to 65535) N
java.lang.Character Y
short -32768 to 32767 N
java.lang.Short Y
int -2147483648 to 2147483647 N
java.lang.Integer Y
long -9223372036854775808 to 9223372036854775807 N
java.lang.Long Y
float# [Figure]1.40239846e-45 to [Figure]3.40282347e38 N
java.lang.Float# Y
double# [Figure]4.94065645841246544e-324 to [Figure]1.79769313486231570e308 N
java.lang.Double# Y
byte[] 1Byte to 2147483647Byte N
java.lang.String -- Y
java.math.BigDecimal -- N
java.sql.Date -- N
java.sql.Time 00:00:00 to 23:59:59 N
java.sql.TimeStamp -- N
Serializable type -- N

Legend:
Y: Can be specified for the primary key
N: Cannot be specified for the primary key
--: Not applicable

#
The floating points might be rounded off.