}
public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getCallstatusObjects(String fromTENANTID, String toTENANTID, String fromSTATUSID, String toSTATUSID, com.cordys.cpc.bsf.query.Cursor cursor)
{
String queryText = "select * from \"CALLSTATUS\" where \"TENANTID\" between :fromTENANTID and :toTENANTID and \"STATUSID\" between :fromSTATUSID and :toSTATUSID";
QueryObject query = new QueryObject(queryText);
query.addParameter("fromTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
query.addParameter("toTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
query.addParameter("fromSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, fromSTATUSID);
query.addParameter("toSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, toSTATUSID);
query.setResultClass(CALLSTATUS.class);
query.setCursor(cursor);
return query.getObjects();
}