public ArrayList findAllByEventCRFId(int eventCRFId) { setTypesExpected(); HashMap variables = new HashMap(); variables.put(new Integer(1), new Integer(eventCRFId)); return this.executeFindAllQuery("findAllByEventCRFId", variables); }
public Collection findAll() { setTypesExpected(); ArrayList alist = this.select(digester.getQuery("findAll")); ArrayList al = new ArrayList(); Iterator it = alist.iterator(); while (it.hasNext()) { ItemDataBean eb = (ItemDataBean) this.getEntityFromHashMap((HashMap) it.next()); al.add(eb); } return al; }
public ItemDataBean findByItemIdAndEventCRFId(int itemId, int eventCRFId) { setTypesExpected(); ItemDataBean answer = new ItemDataBean(); HashMap variables = new HashMap(); variables.put(new Integer(1), new Integer(itemId)); variables.put(new Integer(2), new Integer(eventCRFId)); EntityBean eb = this.executeFindByPKQuery("findByItemIdAndEventCRFId", variables); if (!eb.isActive()) { return new ItemDataBean(); } else { return (ItemDataBean) eb; } }