Package it.eng.spagobi.analiticalmodel.document.metadata

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


        // try to get from association the id associate to the exported
        // metadata
        Integer newFunctid = (Integer) functIdAss.get(functid);
        Integer newObjectid = (Integer) biobjIdAss.get(objid);
        // build a new id for the SbiObjFunct
        SbiObjFuncId objfunctid = objfunct.getId();
        if (objfunctid != null) {
          SbiFunctions sbifunct = objfunctid.getSbiFunctions();
          SbiFunctions newFunct = ImportUtilities.makeNewSbiFunction(sbifunct, newFunctid);
          objfunctid.setSbiFunctions(newFunct);
          functid = newFunctid;
        }
        if (newObjectid != null) {
          SbiObjects sbiobj = objfunctid.getSbiObjects();
          SbiObjects newObj = ImportUtilities.makeNewSbiObject(sbiobj, newObjectid);
          objfunctid.setSbiObjects(newObj);
          objid = newObjectid;
        }
        objfunct.setId(objfunctid);
        // check if the association between metadata already exist
        Map unique = new HashMap();
View Full Code Here


      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      // built key
      SbiObjFuncId hibObjFunctId = new SbiObjFuncId();
      SbiFunctions hibFunct = (SbiFunctions)session.load(SbiFunctions.class, funct.getId());
      SbiObjects hibObj = (SbiObjects)session.load(SbiObjects.class, biobj.getId());
      hibObjFunctId.setSbiObjects(hibObj);
      hibObjFunctId.setSbiFunctions(hibFunct);
      SbiObjFunc hibObjFunct = new SbiObjFunc(hibObjFunctId);
      hibObjFunct.setProg(new Integer(0));
      session.save(hibObjFunct);
      tx.commit();
    } catch (Exception e) {
View Full Code Here

      Set hibObjFunc = new HashSet();
      List functionalities = biObject.getFunctionalities();
      for (Iterator it = functionalities.iterator(); it.hasNext(); ) {
        Integer functId = (Integer) it.next();
        SbiFunctions aSbiFunctions = (SbiFunctions) aSession.load(SbiFunctions.class, functId);
        SbiObjFuncId aSbiObjFuncId = new SbiObjFuncId();
        aSbiObjFuncId.setSbiFunctions(aSbiFunctions);
        aSbiObjFuncId.setSbiObjects(hibBIObject);
        SbiObjFunc aSbiObjFunc = new SbiObjFunc(aSbiObjFuncId);
        updateSbiCommonInfo4Update(aSbiObjFunc);
        aSession.save(aSbiObjFunc);
        hibObjFunc.add(aSbiObjFunc);
      }
View Full Code Here

      Set hibObjFunc = new HashSet();
      List functionalities = obj.getFunctionalities();
      for (Iterator it = functionalities.iterator(); it.hasNext(); ) {
        Integer functId = (Integer) it.next();
        SbiFunctions aSbiFunctions = (SbiFunctions) aSession.load(SbiFunctions.class, functId);
        SbiObjFuncId aSbiObjFuncId = new SbiObjFuncId();
        aSbiObjFuncId.setSbiFunctions(aSbiFunctions);
        aSbiObjFuncId.setSbiObjects(hibBIObject);
        SbiObjFunc aSbiObjFunc = new SbiObjFunc(aSbiObjFuncId);
        updateSbiCommonInfo4Insert(aSbiObjFunc);
        aSession.save(aSbiObjFunc);
        hibObjFunc.add(aSbiObjFunc);
      }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.metadata.SbiObjFuncId

Copyright © 2018 www.massapicom. 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.