Examples of SbiSubreportsId


Examples of it.eng.spagobi.analiticalmodel.document.metadata.SbiSubreportsId

        Integer newMasterId = (Integer) biobjIdAss.get(masterid);
        Integer newSubId = (Integer) biobjIdAss.get(subid);

        // build a new SbiSubreport
        // build a new id for the SbiSubreport
        SbiSubreportsId sbiSubReportsId = objlink.getId();
        SbiSubreportsId newSubReportsId = new SbiSubreportsId();
        if (sbiSubReportsId != null) {
          SbiObjects master = sbiSubReportsId.getMasterReport();
          SbiObjects sub = sbiSubReportsId.getMasterReport();
          SbiObjects newMaster = ImportUtilities.makeNewSbiObject(master, newMasterId);
          SbiObjects newSub = ImportUtilities.makeNewSbiObject(sub, newSubId);
          newSubReportsId.setMasterReport(newMaster);
          newSubReportsId.setSubReport(newSub);
        }
        SbiSubreports newSubReport = new SbiSubreports();
        newSubReport.setId(newSubReportsId);
        // check if the association between metadata already exist
        Map unique = new HashMap();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.metadata.SbiSubreportsId

      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }

      SbiSubreportsId hibSubreportid = new SbiSubreportsId();
      SbiObjects masterReport = (SbiObjects) session.load(SbiObjects.class, sub.getMaster_rpt_id());
      SbiObjects subReport = (SbiObjects) session.load(SbiObjects.class, sub.getSub_rpt_id());
      hibSubreportid.setMasterReport(masterReport);
      hibSubreportid.setSubReport(subReport);
      SbiSubreports hibSubreport = new SbiSubreports(hibSubreportid);
      session.save(hibSubreport);
      tx.commit();
    } catch (Exception e) {
      logger.error("Error while inserting subreport " , e);
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.metadata.SbiSubreportsId

  public void insertSubreport(Subreport aSubreport) throws EMFUserError {
    Session aSession = null;
    Transaction tx = null;
    aSession = getSession();
    tx = aSession.beginTransaction();
    SbiSubreportsId hibSubreportid = new SbiSubreportsId();
    SbiObjects masterReport = (SbiObjects) aSession.load(SbiObjects.class, aSubreport.getMaster_rpt_id());
    SbiObjects subReport = (SbiObjects) aSession.load(SbiObjects.class, aSubreport.getSub_rpt_id());
    hibSubreportid.setMasterReport(masterReport);
    hibSubreportid.setSubReport(subReport);
    SbiSubreports hibSubreport = new SbiSubreports(hibSubreportid);
    updateSbiCommonInfo4Insert(hibSubreport);
    aSession.save(hibSubreport)
    tx.commit();
  }
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.