aspose file tools*
The moose likes Other Open Source Projects and the fly likes two versions for filling the report, whhch one is the best?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "two versions for filling the report, whhch one is the best??" Watch "two versions for filling the report, whhch one is the best??" New topic
Author

two versions for filling the report, whhch one is the best??

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi all........
iam using jasper report, and when filling the report, i am passing the Connection to the jasper,and then jasper make a select query, like this:

But i saw that there are a way that pass ResultSet as a data source,instead of Connection,and making select query before sending it to jasper like this:


which one is the best use in many perspective , including performance?
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I didn't know the second method. I use only the first one.

If the second has a better performance I would use that one.

I suppose that the resultset needs to be the same as from the query if you want a correct report.


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I didn't know the second method. I use only the first one.

If the second has a better performance I would use that one.

I suppose that the resultset needs to be the same as from the query if you want a correct report.
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
Sorry for the second post which is the same.

I have received a message which states that I hadn't a connection so I thought there was no post.
 
wood burning stoves
 
subject: two versions for filling the report, whhch one is the best??