public static ResultSet optimizeInJoinSelect(){
  SimpleResultSet rs=new SimpleResultSet();
  rs.addColumn("X",Types.INTEGER,0,0);
  rs.addRow(1);
  return rs;
}

public static ResultSet optimizeInJoinSelect ( ) { SimpleResultSet rs = new SimpleResultSet ( ) ; rs . addColumn ( "X" , Types . INTEGER , 0 , 0 ) ; rs . addRow ( 1 ) ; return rs ; }
this method is called via reflection from the database .
