Jump to content
Changes to the Jaspersoft community edition download ×

can one restrict a JavaBean datasource?

2004 IR Help

Recommended Posts

By: Udo Rader - daudo

can one restrict a JavaBean datasource?

2005-07-05 01:24



I am just playing around with JavaBeans and jasper and am trying to control the data that the factory delivers at runtime using report parameters.


Very simplified I have the following setup:


public class Person {

private String name = "";

private int p_id = 0;

public getName() ...

public getP_ID() ...



public class ClientFactory {

public static Collection fetchOnePerson( int p_id )


... sql meets java magic

return collection;




So is it possible to pass a _report_ parameter as the collectors p_id and if yes, how would I do it?




Udo Rader

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...