Data types in XML design documents

In XML report design documents, data types are described as Java™ data types. If you invoke EGL report handler functions from the design document, the invocation should use the Java data type that corresponds to the applicable EGL primitive type. You must also declare the data that the report handler function returns to the XML design file in terms of Java data types.

The following table shows how EGL primitive types map to Java data types. JasperReports documentation contains information on the Java data types that you can use.

EGL primitive type Java data type
bigint java.lang.Long
bin java.math.BigDecimal
blob  
char java.lang.String
clob  
date java.util.Date
dbchar java.lang.String
decimal java.math.BigDecimal
decimalfloat java.lang.Double
float java.lang.Float
hex java.lang.byte
int java.lang.Integer
interval java.lang.String
mbchar java.lang.String
money java.math.BigDecimal
numc java.math.BigDecimal
pacf java.math.BigDecimal
smallfloat java.lang.Float
smallint java.lang.Short
string java.lang.String
time java.sql.Time
timestamp java.sql.Timestamp
unicode java.lang.String
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.