version 1.6, 2004/01/28 12:22:35
|
version 1.7, 2004/01/30 13:19:23
|
Line 1356 public class DBBean
|
Line 1356 public class DBBean
|
resultSet.next(); |
resultSet.next(); |
return resultSet.getInt(1); |
return resultSet.getInt(1); |
} |
} |
public TreeSet getIDVector(String id,String table) throws Exception |
public TreeSet getIDVector(String id,String table,String query) throws Exception |
{ |
{ |
TreeSet t= new TreeSet(); |
TreeSet t= new TreeSet(); |
getConnection(); |
getConnection(); |
ResultSet result = this.result; |
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,0 ); |
while(true) |
while(true) |
{ |
{ |
Vector vec = getNextRow(); |
Vector vec = getNextRow(); |