public static ResultSet select(Connection conn,String sql) throws SQLException {
  Statement stat=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
  return stat.executeQuery(sql);
}

public static ResultSet select ( Connection conn , String sql ) throws SQLException { Statement stat = conn . createStatement ( ResultSet . TYPE_SCROLL_INSENSITIVE , ResultSet . CONCUR_READ_ONLY ) ; return stat . executeQuery ( sql ) ; }
this method is called via reflection from the database .
