Examples of save()


Examples of models.gis.GisUploadField.save()

                field.fieldType = attribute.getType().getName().getLocalPart();
                field.fieldPosition = position;
               
                field.gisUpload = gisUpload;
               
                field.save();
          
                position++;
              }
             
               
View Full Code Here

Examples of models.gtfs.GtfsAgency.save()

         
        for (org.onebusaway.gtfs.model.Agency gtfsAgency : reader.getAgencies()) {
          
          GtfsAgency agency = new GtfsAgency(gtfsAgency);
          agency.snapshot = snapshotMerge.snapshot;
          agency.save();
     
        }
       
        snapshotMerge.snapshot.agencyCount = store.getAllAgencies().size();
        snapshotMerge.snapshot.routeCount = store.getAllRoutes().size();
View Full Code Here

Examples of models.gtfs.GtfsSnapshot.save()

        importGtfs();
        }
      else {
       
        GtfsSnapshot snapshot = new GtfsSnapshot(gtfsUpload.getName(), new Date(), GtfsSnapshotSource.UPLOAD);
        snapshot.save();
       
        FileOutputStream fileOutputStream;
      try {
       
        File fileOut = new File(Play.configuration.getProperty("application.publicDataDirectory"), snapshot.getFilename());
View Full Code Here

Examples of models.gtfs.GtfsSnapshotExport.save()

      DirectoryZip.zip(gtfsDirectory, gtfsZip);
      FileUtils.deleteDirectory(gtfsDirectory);
     
      snapshotExport.status = GtfsSnapshotExportStatus.SUCCESS;
     
      snapshotExport.save();
   
    }
    catch(Exception e)
    {
      Logger.error("error");
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMerge.save()

          importGtfs();
      }
           
      snapshot.save();
          GtfsSnapshotMerge merge = new GtfsSnapshotMerge(snapshot);
          merge.save();
         
          ProcessGtfsSnapshotMerge mergeJob = new ProcessGtfsSnapshotMerge(merge.id);
          mergeJob.doJob();
     
      //valdiateGtfs(snapshot.id);
View Full Code Here

Examples of models.mailing.Mailing.save()

        new Vote(lt2, member, true).save();
        // Recipient of mailings
        Mailing m1 = new Mailing();
        m1.actualRecipients.add(member);
        m1.actualRecipients.add(other1);
        m1.save();
        // Source of contact mailing
        Mailing m2 = new Mailing();
        m2.from = member;
        m2.save();
       
View Full Code Here

Examples of models.orphans.collections.BaseModel.save()

        levelTwo.levelOne = levelOne;

        levelOne.levelTwos.add(levelTwo);

        base.levelOnes.add(levelOne);
        base.save();
       
        renderText(base.id);
    }

    public static void update(Long id) {
View Full Code Here

Examples of models.orphans.maps.BaseModel.save()

        levelTwo.levelOne = levelOne;

        levelOne.levelTwoMap.put(levelTwo.mapKey, levelTwo);
        base.levelOneMap.put(levelOne.mapKey, levelOne);

        base.save();

        renderText(base.id);
    }

    public static void update(Long id) {
View Full Code Here

Examples of models.transit.Agency.save()

        for (org.onebusaway.gtfs.model.Agency gtfsAgency : reader.getAgencies()) {
         
          if(!agencyIdMap.containsKey(gtfsAgency.getId()))
          {
            Agency agency = new Agency(gtfsAgency);
            agency.save();
           
            agencyIdMap.put(agency.gtfsAgencyId, BigInteger.valueOf(agency.id));
           
            primaryAgencyId = BigInteger.valueOf(agency.id);
           
View Full Code Here

Examples of models.transit.Route.save()

            route = mapper.readValue(params.get("body"), Route.class);

            if(Agency.findById(route.agency.id) == null)
                badRequest();

            route.save();

            // check if gtfsRouteId is specified, if not create from DB id
            if(route.gtfsRouteId == null) {
                route.gtfsRouteId = "ROUTE_" + route.id.toString();
                route.save();
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.