• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent: Setting values for the bind parameters of a RowSet query

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using JDBC rowset to display values from an Oracle database. I am using the setter methods to set username, password, port, sid, host, query. Now that my query has some input parameters, I tried using rowset.getXXX methods to pass values for the bind parameters. I get NullPointerException while doing setXXX.
How do I set values for the bind parameters for a rowset or how do I create a query having bind parameters and pass values for them using rowset?
BTW, I know doing this using normal the PreparedStatement and populating the rowset with the resultset. But is it not possible to do it directly i.e using only the rowset object?
Please help. Below is the code I used:

Thanks
-raj
reply
    Bookmark Topic Watch Topic
  • New Topic