BIRT Exchange Forum: BIRT Exchange Forum -> BIRT Rocks!

Jump to content


 

No Latest Open Poll.

Page 1 of 1

Still using scripted data source for your POJO's?

Posted by averma  Icon, 13 September 2010 - 10:20 AM

Actuate BIRT has a new ODA in version 11 that will make it easy to use plain old java objects as a data source.
Posted Image
The setup involves simply pointing ODA to the java library containing POJO's and collection classes in a relative or absolute location.
Posted Image
Once configured you can map public getter methods in Java classes to (whose return type is not void) to data set columns. You can also choose to implement a very simple access interface(IPojoDataSet) that helps working with a collection of these objects to create a data set with multiple rows. Here is a quick video that shows how this is done.
The new ODA also allows you to directly use POJO objects stored in application context. The collection object stored in context can be in the form of java.util.Iterator or java.util.Collection or java.lang.Object[] and is accessed via application context key specified in your data set definition in BIRT design.
POJO's are already popular with data persistence frameworks like Hibernate, Toplink and with this new connector you will be able to leverage these data objects without any extra coding effort. Download the latest release of Actuate to test drive this new ODA.

Ashwini Verma

Filed in BIRT data source, POJO, Java Bean, Hibernate, Toplink

Page 1 of 1

« June 2013 »

S M T W T F S
1
2345678
9101112131415
16171819 20 2122
23242526272829
30

My Picture

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

Categories

Search My Blog

Twitter