Query a CachedRowSet


EJB design: Query a CachedRowSet

  1. Query a CachedRowSet (1 messages)

    How can we query a CachedRowSet object for a specific value of a specific column? Where can we find the API for the CachedRowSet?
  2. Query a CachedRowSet[ Go to top ]

    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;