StringBuffer buf= new StringBuffer("id in (");boolean first=true;
for(int i=0;i<theList.size();i++) {
if (first==false) buf.append(",");
StringBuffer buf= new StringBuffer("id in (");boolean first=true;
for(int i=0;i<theList.size();i++) {
if (first==false) buf.append(",");