}
public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getCallstatusObjects(String fromSTATUSID, String toSTATUSID)
{
String queryText = "select * from \"CALLSTATUS\" where \"TENANTID\"= :TENANTID and \"STATUSID\" between :fromSTATUSID and :toSTATUSID";
QueryObject query = new QueryObject(queryText);
query.addParameter("TENANTID", "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);
return query.getObjects();
}