}
public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLS> getCallsObjects(int fromCALLID, int toCALLID, com.cordys.cpc.bsf.query.Cursor cursor)
{
String queryText = "select * from \"CALLS\" where \"CALLID\" between :fromCALLID and :toCALLID";
QueryObject query = new QueryObject(queryText);
query.addParameter("fromCALLID", "CALLS.CALLID", QueryObject.PARAM_INT, new Integer(fromCALLID));
query.addParameter("toCALLID", "CALLS.CALLID", QueryObject.PARAM_INT, new Integer(toCALLID));
query.setResultClass(CALLS.class);
query.setCursor(cursor);
return query.getObjects();
}