--- FM2SQL/Attic/DBBean.java 2004/01/22 12:28:03 1.5 +++ FM2SQL/Attic/DBBean.java 2004/02/11 11:39:24 1.8 @@ -1356,21 +1356,24 @@ public class DBBean resultSet.next(); return resultSet.getInt(1); } - public TreeSet getIDVector(String id,String table) throws Exception + public TreeSet getIDVector(String id,String table,String query,int numHits) throws Exception { TreeSet t= new TreeSet(); getConnection(); ResultSet result = this.result; - makeQuery("select "+id+" from "+getQC()+table+getQC(),0 ); + String subQuery = query.substring(query.lastIndexOf(table)+table.length()+1); + System.out.println("subQuery "+subQuery); + makeQuery("select "+id+" from "+getQC()+table+getQC()+subQuery,numHits ); while(true) { - - Vector vec = getNextRow(); - if(vec==null) break; - t.add(vec.get(0)); + Vector vec = getNextRow(); + if (vec == null) + break; + t.add(vec.get(0)); } this.result=result; - return t; + metaData = this.result.getMetaData(); + return t; } } \ No newline at end of file