aspose file tools
The moose likes JDBC and the fly likes Implementing CachedRowSet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Implementing CachedRowSet" Watch "Implementing CachedRowSet" New topic
Author

Implementing CachedRowSet

surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
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


SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing CachedRowSet
 
Similar Threads
New to JSP, need help
Problem with serialization
Strange behaviour when accessing Oracle 8i table from servlet
Cached RowSet in java Null Pointer Exception
cachedrowset acceptchanges() NOT working