public QueryImpl(ResultSet result,int maxrow,String name,TimeZone tz) throws PageException {
  this.name=name;
  long start=System.nanoTime();
  try {
    fillResult(this,null,null,null,result,maxrow,false,false,tz);
  }
 catch (  SQLException e) {
    throw new DatabaseException(e,null);
  }
catch (  IOException e) {
    throw Caster.toPageException(e);
  }
  exeTime=System.nanoTime() - start;
}

public QueryImpl ( ResultSet result , int maxrow , String name , TimeZone tz ) throws PageException { this . name = name ; long start = System . nanoTime ( ) ; try { fillResult ( this , null , null , null , result , maxrow , false , false , tz ) ; } catch ( SQLException e ) { throw new DatabaseException ( e , null ) ; } catch ( IOException e ) { throw Caster . toPageException ( e ) ; } exeTime = System . nanoTime ( ) - start ; }
create a queryimpl from a sql resultset
