Code example for ResultSet

Methods: absolute, beforeFirst, getRow, last

0
	private InputStream inputStream;
	 
     
	@SuppressWarnings("unused") 
	private static int getRowCount(ResultSet rs) throws SQLException {
		   int current = rs.getRow();
		   rs.last();
		   int count = rs.getRow();
		   if(count == -1)
		       count = 0;
		   if(current == 0)
		       rs.beforeFirst();
		   else 
		       rs.absolute(current);
		   return count;
	}  
	 
	@Action(value="bequery", results ={@Result(name="success",type="stream")}) 
	public String execute(){
			logger.info("This is from is be query= "+ query);
			String jsonString = "This is be query "+query;