• 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

Implementing CachedRowSet

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am implementing CachedRowSet with CachedRowSetImpl. I am trying to access the columns by their names.
CachedRowSet crs = CachedRowSetImpl();
crs.populate(myresultset);
crs.getString("column1");
crs.getString("column2");

In this case i get an exception message Invalid column name. When i try to use the method getMatchColumnNames() , in that also i am getting an exception.
but when i try to access by column index i am able to do with out any problem. How can i access using column name?? Is there any code i have to add along with this?
Please help me in this

regards,
Surendar Prabu
reply
    Bookmark Topic Watch Topic
  • New Topic