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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations