--- FM2SQL/Attic/DBBean.java 2004/01/19 08:24:37 1.4 +++ FM2SQL/Attic/DBBean.java 2004/01/22 12:28:03 1.5 @@ -1356,5 +1356,21 @@ public class DBBean resultSet.next(); return resultSet.getInt(1); } - -} + public TreeSet getIDVector(String id,String table) throws Exception + { + TreeSet t= new TreeSet(); + getConnection(); + ResultSet result = this.result; + makeQuery("select "+id+" from "+getQC()+table+getQC(),0 ); + while(true) + { + + Vector vec = getNextRow(); + if(vec==null) break; + t.add(vec.get(0)); + } + this.result=result; + return t; + } + +} \ No newline at end of file