-
Query a CachedRowSet (1 messages)
- Posted by: Sai Kumar Munikuntla
- Posted on: April 23 2003 08:05 EDT
How can we query a CachedRowSet object for a specific value of a specific column? Where can we find the API for the CachedRowSet?Threaded Messages (1)
- Query a CachedRowSet by Leonard Gurevich on April 23 2003 14:08 EDT
-
Query a CachedRowSet[ Go to top ]
- Posted by: Leonard Gurevich
- Posted on: April 23 2003 14:08 EDT
- in response to Sai Kumar Munikuntla
You just need to loop until you'll find it:
CachedRowSet crs = ...;
boolean found = false;
String mySearch = "foo";
while (crs.next()){
String value = crs.getString("MY_SEARCH_COLUMN");
if (mySearch.equals(value)){
found = true;
break;
}
}
.....