Examples of save()


Examples of models.async.AsyncTrace.save()

    @Util
    public static void createTrace(String content){
        AsyncTrace trace = new AsyncTrace();
        trace.position = AsyncTrace.count();
        trace.content = content;
        trace.save();
    }

}
View Full Code Here

Examples of models.data.FixedTimeChallengeGame.save()

        game.setAddedOn(GameUtil.getCurrentTimeStamp());
        game.setMaxPlayers(gameForm.maxPlayers);
        game.setOwner((Player) user);
        game.setOpenBalance(gameForm.openBalance);
        //adding game player to list
        game.save();
        game.joinGame(user);
        return game;
    }

    /**
 
View Full Code Here

Examples of models.data.Game.save()

            }

            game.setVirtualStartDate(temp);
            game.setRealStartTime(new Timestamp(System.currentTimeMillis()));
            game.setGameStatus(GameStatusEnum.STARTED.getValue());
            game.save();
            return true;
        }

    }
View Full Code Here

Examples of models.data.Stock.save()

            }

            List<StockPrice> stockPrices = parseCSV(beanReader);

            stock.setPrices(stockPrices);
            stock.save();
            return true;
        }
        return false;
    }
View Full Code Here

Examples of models.data.User.save()

        user.setFirstName(firstName);
        user.setLastName(lastName);
        user.setEmail(email);
        user.setPassword(password);
        user.setIsEnabled(ApplicationConstants.TRUE);
        user.save();

        return null;
    }

}
View Full Code Here

Examples of models.edit.CustomKeyChild.save()

    public void testSingleRelationWithCustomKey()
    {
        CustomKeyChild child1 = new CustomKeyChild();
        child1.key = "child1";
        child1.name = "Child One";
        child1.save();

        HashMap<String, String[]> params = new HashMap<String, String[]>();
        params.put("parent.customKeyChild.key", new String[] { "child1" });
        Parent parent = new Parent();
        parent = parent.edit("parent", params);
View Full Code Here

Examples of models.edit.DefaultKeyChild.save()

    @Test
    public void testSingleRelationWithDefaultKey()
    {
        DefaultKeyChild child1 = new DefaultKeyChild();
        child1.name = "Child One";
        child1.save();

        HashMap<String, String[]> params = new HashMap<String, String[]>();
        params.put("parent.defaultKeyChild._id", new String[] { child1._key().toString() });
        Parent parent = new Parent();
        parent = parent.edit("parent", params);
View Full Code Here

Examples of models.gis.GisExport.save()

            DirectoryZip.zip(outputDirectory, outputZipFile);
            FileUtils.deleteDirectory(outputDirectory);
     
      gisExport.status = GisExportStatus.PROCESSED;
     
      gisExport.save();
           
        }
        catch(Exception e)
        { 
          Logger.error("Unable to process GIS export: ", e.toString());
View Full Code Here

Examples of models.gis.GisRoute.save()

                {
                  FeatureAttributeFormatter attribFormatter = new FeatureAttributeFormatter(gisUpload.fieldDescription);
                  route.description =  attribFormatter.format(feature);
                }
                 
                  route.save();
                 
                  route.processSegments();
                 
                   }
                else if(gisUpload.type == GisUploadType.STOPS)
View Full Code Here

Examples of models.gis.GisStop.save()

                  {
                    FeatureAttributeFormatter attribFormatter = new FeatureAttributeFormatter(gisUpload.fieldDescription);
                    stop.description =  attribFormatter.format(feature);
                  }
                 
                    stop.save();
                }
              } 
            }
            else
            {
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.