BIRT Exchange Forum: BIRT Exchange Forum -> Still using scripted data source for your POJO's?

Jump to content


 

BIRT Poll: Have you ever done any development work on mobile?

Yes - lotsYes - someNo - but plan toNo time or interestWhat is mobile?

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



1 Comments On This Entry

Page 1 of 1

actuser9 Icon

25 April 2012 - 10:54 AM
Hi Ashwini,

Very good post...thank you.

I am using Actuate11 SP3 and I am trying to connect to the pojo data source and the ping is successsful. But while creating the data set, the run time properties in your case shows the class "CustomerDataSet - customerlist" but the pojo I am using is not populating any classes like wise. Any idea why?
Page 1 of 1

« June 2013 »

S M T W T F S
1
2345678
9101112131415
16 17 1819202122
23242526272829
30

My Picture

0 user(s) viewing

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

Categories

Search My Blog

Twitter