Examples of SbiChecks


Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

   *
   * @return the new hibernate check object
   */
  public static SbiChecks makeNewSbiCheck(SbiChecks check){
    logger.debug("IN");
    SbiChecks newck = new SbiChecks();
    newck.setCheckType(check.getCheckType());
    newck.setDescr(check.getDescr());
    newck.setLabel(check.getLabel());
    newck.setName(check.getName());
    newck.setValue1(check.getValue1());
    newck.setValue2(check.getValue2());
    newck.setValueTypeCd(check.getValueTypeCd());
    logger.debug("OUT");
    return newck;
  }
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

   *
   * @return the new hibernate check object
   */
  public static SbiChecks makeNewSbiCheck(SbiChecks check, Integer id){
    logger.debug("IN");
    SbiChecks newCk = makeNewSbiCheck(check);
    newCk.setCheckId(id);
    logger.debug("OUT");
    return newCk;
  }
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

      SbiParuse sbiparuse = parusecheckid.getSbiParuse();
      SbiParuse newParuse = ImportUtilities.makeNewSbiParuse(sbiparuse, newParuseid);
      newParusecheckid.setSbiParuse(newParuse);
    }
    if (newCheckid != null) {
      SbiChecks sbicheck = parusecheckid.getSbiChecks();
      SbiChecks newCheck = ImportUtilities.makeNewSbiCheck(sbicheck, newCheckid);
      newParusecheckid.setSbiChecks(newCheck);
    }
    SbiParuseCk newParuseck = new SbiParuseCk();
    newParuseck.setId(newParusecheckid);
    newParuseck.setProg(paruseck.getProg());
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

   *
   * @throws EMFUserError
   */
  private void importChecks() throws EMFUserError {
    logger.debug("IN");
    SbiChecks check = null;
    try {
      List exportedChecks = importer.getAllExportedSbiObjects(sessionExpDB, "SbiChecks", null);
      Iterator iterSbiChecks = exportedChecks.iterator();
      while (iterSbiChecks.hasNext()) {
        check = (SbiChecks) iterSbiChecks.next();
        Integer oldId = check.getCheckId();
        Map checkIdAss = metaAss.getCheckIDAssociation();
        Set checkIdAssSet = checkIdAss.keySet();
        if (checkIdAssSet.contains(oldId)) {
          metaLog.log("Exported check " + check.getName() + " not inserted"
              + " because it has the same label of an existing check");
          continue;
        }
        SbiChecks newck = ImportUtilities.makeNewSbiCheck(check);
        String valueCd = check.getValueTypeCd();
        Map unique = new HashMap();
        unique.put("valuecd", valueCd);
        unique.put("domaincd", "CHECK");
        SbiDomains existDom = (SbiDomains) importer.checkExistence(unique, sessionCurrDB, new SbiDomains());
        if (existDom != null) {
          newck.setCheckType(existDom);
          newck.setValueTypeCd(existDom.getValueCd());
        }
        sessionCurrDB.save(newck);

        metaLog.log("Inserted new check " + newck.getName());
        Integer newId = newck.getCheckId();
        metaAss.insertCoupleCheck(oldId, newId);
      }
    } catch (Exception e) {
      if (check != null) {
        logger.error("Error while importing exported check with label [" + check.getLabel() + "].", e);
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

          SbiParuse newParuse = ImportUtilities.makeNewSbiParuse(sbiparuse, newParuseid);
          parusecheckid.setSbiParuse(newParuse);
          paruseid = newParuseid;
        }
        if (newCheckid != null) {
          SbiChecks sbicheck = parusecheckid.getSbiChecks();
          SbiChecks newCheck = ImportUtilities.makeNewSbiCheck(sbicheck, newCheckid);
          parusecheckid.setSbiChecks(newCheck);
          checkid = newCheckid;
        }
        paruseck.setId(parusecheckid);
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.metadata.SbiChecks

      }
    }
    List exportedCheck = importer.getAllExportedSbiObjects(sessionExpDB, "SbiChecks", null);
    Iterator iterSbiCheck = exportedCheck.iterator();
    while (iterSbiCheck.hasNext()) {
      SbiChecks checkExp = (SbiChecks) iterSbiCheck.next();
      String label = checkExp.getLabel();
      Object existObj = importer.checkExistence(label, sessionCurrDB, new SbiChecks());
      if (existObj != null) {
        SbiChecks checkCurr = (SbiChecks) existObj;
        metaAss.insertCoupleCheck(checkExp.getCheckId(), checkCurr.getCheckId());
        metaAss.insertCoupleCheck(checkExp, checkCurr);
        metaLog.log("Found an existing check " + checkCurr.getName() + " with "
            + "the same label of the exported check " + checkExp.getName());
      }
    }
    List exportedObjPar = importer.getAllExportedSbiObjects(sessionExpDB, "SbiObjPar", null);
    Iterator iterSbiObjPar = exportedObjPar.iterator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.