else _serializeASQuery(name,query,sb,done);
}
private void _serializeWDDXQuery(String name,Query query,StringBuffer sb, Set<Object> done) throws ConverterException {
Iterator<Key> it = query.keyIterator();
Key k;
sb.append("new WddxRecordset();");
int recordcount=query.getRecordcount();
int i=-1;
while(it.hasNext()) {
i++;
k = it.next();
if(useShortcuts)sb.append("col"+i+"=[];");
else sb.append("col"+i+"=new Array();");
// lower case ist ok!
String skey = StringUtil.escapeJS(k.getLowerString());
for(int y=0;y<recordcount;y++) {
sb.append("col"+i+"["+y+"]=");
_serialize("col"+i+"["+y+"]",query.getAt(k,y+1,null),sb,done);