Code example for ResultSet

Methods: close, getLong, next

0
        stmt = getWindowScnStatement(applyLogId, srcid);
        stmt.setInt(1, tabRid);
      } 
 
      rs = stmt.executeQuery();
      if (rs.next())
      { 
        windowScn = rs.getLong(1);
      } 
    } catch (SQLException e)
    { 
      LOG.error("Error ocurred during getWindowScnforSource", e);
      throw e;
    } finally 
    { 
      if (null != rs)
      { 
        rs.close();
        rs = null;
      } 
      if (null != stmt)
      { 
        stmt.close();