• | id – Literal name of the column in the data source. As in the JDBC model that the data source is based on, the id must be unique within the jdbcTable, but not necessarily within the Domain. |
• | type – The Java type of the column, as determined from the data source by the JDBC driver. The type is one of the following: |
java.lang.Boolean java.lang.Byte java.lang.Character java.lang.Double | java.lang.Float java.lang.Integer java.lang.Long java.lang.Short | java.lang.String java.math.BigDecimal java.sql.Date java.sql.Time | java.sql.Timestamp java.util.Date |
Unless you know the name and type of every column in the data source, it is often easier to select and export tables from the Domain Designer. The Domain Designer accesses the data source to find the names of all tables and columns, as well as their types. You may then export the XML design file with this information and refine your design.
If you have proprietary types in your database, the server may not be able to map its Java type from the JDBC driver. You can configure the mapping for proprietary types, as described in the JasperReports Server Administrator Guide. Alternatively, you can override any mapping by specifying the type attribute for any given field in the XML design file. The server uses this Java type for the field, regardless of its mapping. If your proprietary type cannot be cast in the specified type, the server raises an exception. |
Recommended Comments
There are no comments to display.