public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSOLUTIONS> getCallsolutionsObjects(int fromSOLUTIONID, int toSOLUTIONID, int fromCALLID, int toCALLID)
{
String queryText = "select * from \"CALLSOLUTIONS\" where \"SOLUTIONID\" between :fromSOLUTIONID and :toSOLUTIONID and \"CALLID\" between :fromCALLID and :toCALLID";
QueryObject query = new QueryObject(queryText);
query.addParameter("fromSOLUTIONID", "CALLSOLUTIONS.SOLUTIONID", QueryObject.PARAM_INT, new Integer(fromSOLUTIONID));
query.addParameter("toSOLUTIONID", "CALLSOLUTIONS.SOLUTIONID", QueryObject.PARAM_INT, new Integer(toSOLUTIONID));
query.addParameter("fromCALLID", "CALLSOLUTIONS.CALLID", QueryObject.PARAM_INT, new Integer(fromCALLID));
query.addParameter("toCALLID", "CALLSOLUTIONS.CALLID", QueryObject.PARAM_INT, new Integer(toCALLID));
query.setResultClass(CALLSOLUTIONS.class);
return query.getObjects();
}