public static ResultSet simpleResultSet(){
  SimpleResultSet rs=new SimpleResultSet();
  rs.addColumn("ID",Types.INTEGER,10,0);
  rs.addColumn("NAME",Types.VARCHAR,255,0);
  rs.addRow(0,"Hello");
  return rs;
}

public static ResultSet simpleResultSet ( ) { SimpleResultSet rs = new SimpleResultSet ( ) ; rs . addColumn ( "ID" , Types . INTEGER , 10 , 0 ) ; rs . addColumn ( "NAME" , Types . VARCHAR , 255 , 0 ) ; rs . addRow ( 0 , "Hello" ) ; return rs ; }
creates a simple result set with one row .
