}
for ( Iterator i = sort_bind_variables.iterator(); i.hasNext(); ) {
s.setObject(counter++,i.next());
}
ResultSet r = s.executeQuery();
int col_count = r.getMetaData().getColumnCount();
// We store the matching keys in an external data file for later use so we can release this
// connection back to the pool asap.
while ( r.next() ) {
EntityKey ek = new EntityKey(et, r);
OID key = new OID(datasource_name,et.getEntityName(), new EntityKey(et, r));
result.add(key);
}
result.commit();
r.close();
s.close();
c.close();
result.setStatus(IRResultSetStatus.COMPLETE);
}