Search in sources :

Example 1 with ItemGroupBean

use of org.akaza.openclinica.bean.submit.ItemGroupBean in project OpenClinica by OpenClinica.

the class ItemGroupDAO method findLegitGroupAllBySectionId.

public List<ItemGroupBean> findLegitGroupAllBySectionId(int sectionId) {
    this.setTypesExpected();
    HashMap<Integer, Integer> variables = new HashMap<Integer, Integer>();
    variables.put(1, sectionId);
    List listofMaps = this.select(digester.getQuery("findLegitGroupAllBySectionId"), variables);
    List<ItemGroupBean> beanList = new ArrayList<ItemGroupBean>();
    ItemGroupBean bean;
    for (Object map : listofMaps) {
        bean = (ItemGroupBean) this.getEntityFromHashMap((HashMap) map);
        beanList.add(bean);
    }
    return beanList;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ItemGroupBean(org.akaza.openclinica.bean.submit.ItemGroupBean)

Example 2 with ItemGroupBean

use of org.akaza.openclinica.bean.submit.ItemGroupBean in project OpenClinica by OpenClinica.

the class ItemGroupDAO method findGroupBySectionId.

public List<ItemGroupBean> findGroupBySectionId(int sectionId) {
    this.setTypesExpected();
    HashMap<Integer, Integer> variables = new HashMap<Integer, Integer>();
    variables.put(1, sectionId);
    List listofMaps = this.select(digester.getQuery("findGroupBySectionId"), variables);
    List<ItemGroupBean> beanList = new ArrayList<ItemGroupBean>();
    ItemGroupBean bean;
    for (Object map : listofMaps) {
        bean = (ItemGroupBean) this.getEntityFromHashMap((HashMap) map);
        beanList.add(bean);
    }
    return beanList;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ItemGroupBean(org.akaza.openclinica.bean.submit.ItemGroupBean)

Example 3 with ItemGroupBean

use of org.akaza.openclinica.bean.submit.ItemGroupBean in project OpenClinica by OpenClinica.

the class ItemGroupDAO method findLegitGroupBySectionId.

public List<ItemGroupBean> findLegitGroupBySectionId(int sectionId) {
    this.setTypesExpected();
    HashMap<Integer, Integer> variables = new HashMap<Integer, Integer>();
    variables.put(1, sectionId);
    List listofMaps = this.select(digester.getQuery("findLegitGroupBySectionId"), variables);
    List<ItemGroupBean> beanList = new ArrayList<ItemGroupBean>();
    ItemGroupBean bean;
    for (Object map : listofMaps) {
        bean = (ItemGroupBean) this.getEntityFromHashMap((HashMap) map);
        beanList.add(bean);
    }
    return beanList;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ItemGroupBean(org.akaza.openclinica.bean.submit.ItemGroupBean)

Example 4 with ItemGroupBean

use of org.akaza.openclinica.bean.submit.ItemGroupBean in project OpenClinica by OpenClinica.

the class ItemGroupDAO method findByName.

public EntityBean findByName(String name) {
    ItemGroupBean formGroupBean = new ItemGroupBean();
    this.setTypesExpected();
    HashMap<Integer, String> variables = new HashMap<Integer, String>();
    variables.put(1, name);
    String sql = digester.getQuery("findByName");
    ArrayList listofMap = this.select(sql, variables);
    for (Object map : listofMap) {
        formGroupBean = (ItemGroupBean) this.getEntityFromHashMap((HashMap) map);
    }
    return formGroupBean;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ItemGroupBean(org.akaza.openclinica.bean.submit.ItemGroupBean)

Example 5 with ItemGroupBean

use of org.akaza.openclinica.bean.submit.ItemGroupBean in project OpenClinica by OpenClinica.

the class ItemGroupDAO method findOnlyGroupsByCRFVersionID.

public List<ItemGroupBean> findOnlyGroupsByCRFVersionID(int Id) {
    this.setTypesExpected();
    HashMap<Integer, Integer> variables = new HashMap<Integer, Integer>();
    variables.put(1, Id);
    List listofMaps = this.select(digester.getQuery("findOnlyGroupsByCRFVersionID"), variables);
    List<ItemGroupBean> beanList = new ArrayList<ItemGroupBean>();
    ItemGroupBean bean;
    for (Object map : listofMaps) {
        bean = (ItemGroupBean) this.getEntityFromHashMap((HashMap) map);
        beanList.add(bean);
    }
    return beanList;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ItemGroupBean(org.akaza.openclinica.bean.submit.ItemGroupBean)

Aggregations

ItemGroupBean (org.akaza.openclinica.bean.submit.ItemGroupBean)71 ArrayList (java.util.ArrayList)45 HashMap (java.util.HashMap)34 ItemBean (org.akaza.openclinica.bean.submit.ItemBean)26 DisplayItemGroupBean (org.akaza.openclinica.bean.submit.DisplayItemGroupBean)25 ItemGroupDAO (org.akaza.openclinica.dao.submit.ItemGroupDAO)23 SectionBean (org.akaza.openclinica.bean.submit.SectionBean)20 EventCRFBean (org.akaza.openclinica.bean.submit.EventCRFBean)18 DisplayItemBean (org.akaza.openclinica.bean.submit.DisplayItemBean)17 ItemFormMetadataBean (org.akaza.openclinica.bean.submit.ItemFormMetadataBean)16 ItemGroupMetadataBean (org.akaza.openclinica.bean.submit.ItemGroupMetadataBean)16 CRFVersionBean (org.akaza.openclinica.bean.submit.CRFVersionBean)15 DisplaySectionBean (org.akaza.openclinica.bean.submit.DisplaySectionBean)14 ItemDAO (org.akaza.openclinica.dao.submit.ItemDAO)14 CRFBean (org.akaza.openclinica.bean.admin.CRFBean)13 EventDefinitionCRFBean (org.akaza.openclinica.bean.managestudy.EventDefinitionCRFBean)12 StudyEventDefinitionBean (org.akaza.openclinica.bean.managestudy.StudyEventDefinitionBean)12 CRFVersionDAO (org.akaza.openclinica.dao.submit.CRFVersionDAO)11 SectionDAO (org.akaza.openclinica.dao.submit.SectionDAO)11 StudyBean (org.akaza.openclinica.bean.managestudy.StudyBean)10