public String setCondr(ArrayList<ConBean> list, String name, Connection conn) throws DBException { String condr_idseq = null; CondrVO condrVO = new CondrVO(); Component_Concepts_Ext_Mgr ccMgr = new Component_Concepts_Ext_Mgr(); if (list.size() == 1) { condrVO.setCrtl_name(DBConstants.CRTL_NAME_SIMPLE); } else { condrVO.setCrtl_name(DBConstants.CRTL_NAME_CONCAT); } condrVO.setName(name); condr_idseq = this.insert(condrVO, conn); // Create Component Concepts ComponentConceptsVO ccVO = new ComponentConceptsVO(); ccVO.setCondr_IDSEQ(condr_idseq); for (int i = 0; i < list.size(); i++) { ConBean con = (ConBean) list.get(i); ccVO.setCon_IDSEQ(con.getCon_IDSEQ()); ccVO.setDisplay_order(con.getDisplay_order()); if (con.getDisplay_order() == 0) { ccVO.setPrimary_flag_ind(DBConstants.PRIMARY_FLAG_YES); } else { ccVO.setPrimary_flag_ind(DBConstants.PRIMARY_FLAG_NO); } ccVO.setConcept_Value(con.getConcept_value()); ccMgr.insert(ccVO, conn); } return condr_idseq; }