Examples of SbiGeoMapFeaturesId


Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

        Iterator mapFeaturesIt = mapFeatures.iterator();
        while (mapFeaturesIt.hasNext()) {
          GeoFeature feature = (GeoFeature) mapFeaturesIt.next();
          GeoMapFeature mapFeature = mapFeaturesDAO.loadMapFeatures(new Integer(map.getMapId()), new Integer(feature.getFeatureId()));
          SbiGeoMapFeatures hibMapFeature = new SbiGeoMapFeatures()
          SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();     
          hibMapFeatureId.setMapId(mapFeature.getMapId());
          hibMapFeatureId.setFeatureId(mapFeature.getFeatureId());
          hibMapFeature.setId(hibMapFeatureId);
          hibMapFeature.setSvgGroup(mapFeature.getSvgGroup());
          hibMapFeature.setVisibleFlag(mapFeature.getVisibleFlag());
          session.save(hibMapFeature);
        }
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

            "It will be overwritten.");
            newMapFeature = (SbiGeoMapFeatures) existObj;
          }
        } else {
          newMapFeature = new SbiGeoMapFeatures();
          SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();     
          hibMapFeatureId.setMapId(existingMapId.intValue());
          hibMapFeatureId.setFeatureId(existingFeatureId.intValue());
          newMapFeature.setId(hibMapFeatureId);
        }
        newMapFeature.setSvgGroup(expMapFeature.getSvgGroup());
        newMapFeature.setVisibleFlag(expMapFeature.getVisibleFlag());
        sessionCurrDB.save(newMapFeature);
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

      ISbiGeoFeaturesDAO featuresDAO = DAOFactory.getSbiGeoFeaturesDAO();
      SbiGeoMapFeatures tmpMapFeature = null;
      GeoFeature tmpFeature = null;
      while (it.hasNext()) {     
        tmpMapFeature = (SbiGeoMapFeatures) it.next();
        SbiGeoMapFeaturesId tmpMapFeatureId = tmpMapFeature.getId();       
        tmpFeature = featuresDAO.loadFeatureByID(new Integer(tmpMapFeatureId.getFeatureId()));
   
        if (tmpFeature != null)
          realResult.add((String)tmpFeature.getName());
      }
      tx.commit();
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

      ISbiGeoFeaturesDAO featuresDAO = DAOFactory.getSbiGeoFeaturesDAO();
      SbiGeoMapFeatures tmpMapFeature = null;
      GeoFeature tmpFeature = null;
      while (it.hasNext()) {     
        tmpMapFeature = (SbiGeoMapFeatures) it.next();
        SbiGeoMapFeaturesId tmpMapFeatureId = tmpMapFeature.getId();       
        tmpFeature = featuresDAO.loadFeatureByID(new Integer(tmpMapFeatureId.getFeatureId()));
   
        if (tmpFeature != null)
          realResult.add((GeoFeature)tmpFeature);
      }
      tx.commit();
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

      ISbiGeoMapsDAO mapDAO = DAOFactory.getSbiGeoMapsDAO();
      SbiGeoMapFeatures tmpMapFeature = null;
      GeoMap tmpMap = null;
      while (it.hasNext()) {       
        tmpMapFeature = (SbiGeoMapFeatures) it.next();
        SbiGeoMapFeaturesId tmpMapFeatureId = tmpMapFeature.getId();       
        tmpMap = mapDAO.loadMapByID(new Integer(tmpMapFeatureId.getMapId()));
        if (tmpMap != null)
          realResult.add((String)tmpMap.getName());
      }
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

      ISbiGeoMapsDAO mapDAO = DAOFactory.getSbiGeoMapsDAO();
      SbiGeoMapFeatures tmpMapFeature = null;
      GeoMap tmpMap = null;
      while (it.hasNext()) {       
        tmpMapFeature = (SbiGeoMapFeatures) it.next();
        SbiGeoMapFeaturesId tmpMapFeatureId = tmpMapFeature.getId();       
        tmpMap = mapDAO.loadMapByID(new Integer(tmpMapFeatureId.getMapId()));
        if (tmpMap != null)
          realResult.add((GeoMap)tmpMap);
      }
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

    Session aSession = null;
    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();
      hibMapFeatureId.setMapId(aMapFeature.getMapId());
      hibMapFeatureId.setFeatureId(aMapFeature.getFeatureId());

      SbiGeoMapFeatures hibFeature = (SbiGeoMapFeatures) aSession.load(SbiGeoMapFeatures.class, hibMapFeatureId);
      hibFeature.setSvgGroup(aMapFeature.getSvgGroup());
      hibFeature.setVisibleFlag(aMapFeature.getVisibleFlag());
      updateSbiCommonInfo4Update(hibFeature);
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiGeoMapFeatures hibMapFeature = new SbiGeoMapFeatures()
     
      SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();     
      hibMapFeatureId.setMapId(aMapFeature.getMapId());
      hibMapFeatureId.setFeatureId(aMapFeature.getFeatureId());
      hibMapFeature.setId(hibMapFeatureId);
     
      hibMapFeature.setSvgGroup(aMapFeature.getSvgGroup());
      hibMapFeature.setVisibleFlag(aMapFeature.getVisibleFlag());
      updateSbiCommonInfo4Insert(hibMapFeature);
View Full Code Here

Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMapFeaturesId

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();     
      hibMapFeatureId.setMapId(aMapFeature.getMapId());
      hibMapFeatureId.setFeatureId(aMapFeature.getFeatureId());
     
      SbiGeoMapFeatures hibMapFeature = (SbiGeoMapFeatures) aSession.load(SbiGeoMapFeatures.class, hibMapFeatureId);

      aSession.delete(hibMapFeature);
      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.