if (pair == null || !(pair.getHead() instanceof Symbol))
{
throw new IllegalArgumentException("Invalid query class name");
}
Symbol classSymbol = (Symbol)pair.getHead();
pair = pair.getNext();
Pair attributes = null;
Object where = null;
if (pair != null)
{
attributes = (Pair)pair.getHead();
pair = pair.getNext();
if (pair != null)
{
where = pair.getHead();
if (pair.getTail() != null)
{
throw new IllegalArgumentException("Too many query arguments");
}
}
}
Query query = Query.createRead(m_context.getMetadata().getMetaclass(classSymbol.getName()),
attributes, where, null, -1, 0, false, Query.SEC_NONE, m_context);
resultList.addAll((List)RPCUtil.transfer(query.read(), attributes, identityMap, RPCUtil.TF_ALL));
}