@Override public String queryToRetrieveData(){
  String parameterizedQuery;
  if (query.contains("%s")) {
    parameterizedQuery=query.replace("%s",startRow + "");
  }
 else {
    parameterizedQuery=query;
  }
  return parameterizedQuery;
}

@ Override public String queryToRetrieveData ( ) { String parameterizedQuery ; if ( query . contains ( "%s" ) ) { parameterizedQuery = query . replace ( "%s" , startRow + "" ) ; } else { parameterizedQuery = query ; } return parameterizedQuery ; }
this method replaces the parameters in query with actual values given by user . example of retrievequery : select * from % t where % p > % s batchsize % l ;
