예제 #1
0
  public ArrayList findAllByEventCRFId(int eventCRFId) {
    setTypesExpected();
    HashMap variables = new HashMap();
    variables.put(new Integer(1), new Integer(eventCRFId));

    return this.executeFindAllQuery("findAllByEventCRFId", variables);
  }
예제 #2
0
  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;
  }
예제 #3
0
  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;
    }
  }