Package it.eng.spagobi.behaviouralmodel.analyticaldriver.metadata

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.metadata.SbiParameters


      hibBIObjPar.setPriority(biobjpar.getPriority());
      hibBIObjPar.setProg(biobjpar.getProg());
      Integer biobjid = biobjpar.getBiObjectID();
      SbiObjects sbiob = (SbiObjects)session.load(SbiObjects.class, biobjid);
      Integer parid = biobjpar.getParID();     
      SbiParameters sbipar = (SbiParameters)session.load(SbiParameters.class, parid);
      hibBIObjPar.setSbiObject(sbiob);
      hibBIObjPar.setSbiParameter(sbipar);
      // save the BI Object Parameter
      session.save(hibBIObjPar);
      tx.commit();
View Full Code Here


      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiDomains hibParamType = (SbiDomains)session.load(SbiDomains.class, param.getTypeId());
      SbiParameters hibParam = new SbiParameters(param.getId());
      hibParam.setDescr(param.getDescription());
      hibParam.setLength(new Short(param.getLength().shortValue()));
      hibParam.setLabel(param.getLabel());
      hibParam.setName(param.getName());
      hibParam.setParameterTypeCode(param.getType());
      hibParam.setMask(param.getMask());
      hibParam.setParameterType(hibParamType);
      hibParam.setFunctionalFlag(param.isFunctional() ? new Short((short) 1) : new Short((short) 0));
      hibParam.setTemporalFlag(param.isTemporal() ? new Short((short) 1) : new Short((short) 0));
      session.save(hibParam);
      tx.commit();

    } catch (Exception e) {
      logger.error("Error while inserting parameter into export database " , e);
View Full Code Here

      if(!hibList.isEmpty()) {
        return;
      }
      SbiParuse hibParuse = new SbiParuse(parUse.getUseID());
      // Set the relation with parameter
      SbiParameters hibParameters = (SbiParameters)session.load(SbiParameters.class, parUse.getId());
      hibParuse.setSbiParameters(hibParameters);
      // Set the relation with idLov (if the parameter ha a lov related)
      Integer lovId = parUse.getIdLov();
      if(lovId!=null){
        SbiLov hibLov = (SbiLov)session.load(SbiLov.class, parUse.getIdLov());
View Full Code Here

    Query hqlQuery = null;
    if (hibObj instanceof SbiParameters) {
      String label = (String) unique;
      hql = "from SbiParameters sp where sp.label = '" + label + "'";
      hqlQuery = sessionCurrDB.createQuery(hql);
      SbiParameters hibPar = (SbiParameters) hqlQuery.uniqueResult();
      return hibPar;
    } else if (hibObj instanceof SbiExtRoles) {
      String roleName = (String) unique;
      hql = "from SbiExtRoles er where er.name = '" + roleName + "'";
      hqlQuery = sessionCurrDB.createQuery(hql);
View Full Code Here

        logger.error("the BIObjectParameter with id="+aBIObjectParameter.getId()+" does not exist.");
        throw new EMFUserError(EMFErrorSeverity.ERROR, 1033);
      }
     
      SbiObjects aSbiObject = (SbiObjects) aSession.load(SbiObjects.class, aBIObjectParameter.getBiObjectID());
      SbiParameters aSbiParameter = (SbiParameters)aSession.load(SbiParameters.class, aBIObjectParameter.getParameter().getId());
     
      hibObjPar.setSbiObject(aSbiObject);
      hibObjPar.setSbiParameter(aSbiParameter);
      hibObjPar.setLabel(aBIObjectParameter.getLabel());
      hibObjPar.setReqFl(new Short(aBIObjectParameter.getRequired().shortValue()));
View Full Code Here

    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
   
      SbiObjects aSbiObject = (SbiObjects) aSession.load(SbiObjects.class, aBIObjectParameter.getBiObjectID());
      SbiParameters aSbiParameter = (SbiParameters) aSession.load(SbiParameters.class, aBIObjectParameter.getParameter().getId());
     
      SbiObjPar hibObjectParameterNew = new SbiObjPar();
      hibObjectParameterNew.setSbiObject(aSbiObject);
      hibObjectParameterNew.setSbiParameter(aSbiParameter);
      hibObjectParameterNew.setProg(new Integer(1));
View Full Code Here

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
 
      SbiParameters hibParameters = (SbiParameters)aSession.load(SbiParameters.class,  parameterID);
   
      toReturn = toParameter(hibParameters);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

      String input_type_id = st.nextToken();
     
      Integer typeId = Integer.valueOf(input_type_id);
      SbiDomains parameterType = (SbiDomains)aSession.load(SbiDomains.class, typeId);
     
      SbiParameters hibParameters = (SbiParameters)aSession.load(SbiParameters.class,  aParameter.getId());
      updateSbiCommonInfo4Update(hibParameters);
      hibParameters.setDescr(aParameter.getDescription());
      hibParameters.setLength(new Short(aParameter.getLength().shortValue()));
      hibParameters.setLabel(aParameter.getLabel());
     
      hibParameters.setName(aParameter.getName());
     
      hibParameters.setParameterTypeCode(input_type_cd);
      hibParameters.setMask(aParameter.getMask());
      hibParameters.setParameterType(parameterType);
     
      if (aParameter.isFunctional()) hibParameters.setFunctionalFlag(new Short((short) 1));
      else hibParameters.setFunctionalFlag(new Short((short) 0));
     
      if (aParameter.isTemporal()) hibParameters.setTemporalFlag(new Short((short) 1));
      else hibParameters.setTemporalFlag(new Short((short) 0));
     
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

      Integer typeId = Integer.valueOf(input_type_id);
      SbiDomains parameterType = (SbiDomains) aSession.load(
          SbiDomains.class, typeId);

      SbiParameters hibParameters = new SbiParameters();
      hibParameters.setDescr(aParameter.getDescription());
      hibParameters.setLength(new Short(aParameter.getLength()
          .shortValue()));
      hibParameters.setLabel(aParameter.getLabel());
      hibParameters.setName(aParameter.getName());
      hibParameters.setParameterTypeCode(input_type_cd);
      hibParameters.setMask(aParameter.getMask());
      hibParameters.setParameterType(parameterType);
      if (aParameter.isFunctional()) hibParameters.setFunctionalFlag(new Short((short) 1));
      else hibParameters.setFunctionalFlag(new Short((short) 0));
      if (aParameter.isTemporal()) hibParameters.setTemporalFlag(new Short((short) 1));
      else hibParameters.setTemporalFlag(new Short((short) 0));
      updateSbiCommonInfo4Insert(hibParameters);
      aSession.save(hibParameters);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
       
        SbiParameters hibParameters = (SbiParameters)aSession.load(SbiParameters.class,  aParameter.getId());
        aSession.delete(hibParameters);
       
        tx.commit();

      } catch (HibernateException he) {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.behaviouralmodel.analyticaldriver.metadata.SbiParameters

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.