--- FM2SQL/Attic/DBBean.java 2004/01/19 08:24:37 1.4 +++ FM2SQL/Attic/DBBean.java 2004/01/30 13:19:23 1.7 @@ -1356,5 +1356,24 @@ public class DBBean resultSet.next(); return resultSet.getInt(1); } - -} + public TreeSet getIDVector(String id,String table,String query) throws Exception + { + TreeSet t= new TreeSet(); + getConnection(); + ResultSet result = this.result; + String subQuery = query.substring(query.lastIndexOf(table)+table.length()+1); + System.out.println("subQuery "+subQuery); + makeQuery("select "+id+" from "+getQC()+table+getQC()+subQuery,0 ); + while(true) + { + Vector vec = getNextRow(); + if (vec == null) + break; + t.add(vec.get(0)); + } + this.result=result; + metaData = this.result.getMetaData(); + return t; + } + +} \ No newline at end of file