Jump to content
We've recently updated our Privacy Statement, available here ×

Question about passing parameters to report


burferd

Recommended Posts

All the examples I have seen so far pass parameters as strings using something like:

 

HashMap hmap = new HashMap();

hmap.put( "ParamName", "value" );

 

 

How do you handle non-string parameters (int, double)?

Are they passed as strings as well like:

hmap.put( "ID", "13" );

 

or do they have to be passed as some other object type?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Parameters are passed as an object.

 

java.lang.String

java.lang.Object

java.lang.Boolean

java.lang.Byte

java.util.Date

java.sql.Timestamp

java.sql.Time

java.lang.Double

java.lang.Float

java.lang.Integer

java.io.InputStream

java.lang.Long

java.lang.Short

java.math.BigDecimal

 

so ... for example

Code:

hmap.put( "ID", new Integer(13) );

 

3rwin

Post edited by: 3rwin, at: 2007/04/03 08:32

Link to comment
Share on other sites

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...