Examples of persist()


Examples of br.com.procempa.modus.session.PersistentAccess.persist()

    PersistentAccess pa = PersistentAccessFactory.getInstance();
    Inscricao inscricao = new Inscricao();
    inscricao.setUsuario(u);
    inscricao.setTurma(turma);
    pa.persist(inscricao);
  }
 
  public static List<Inscricao> getList(Turma turma) throws Exception {
    List<Inscricao> inscritos = new ArrayList<Inscricao>();
    PersistentAccess pa = PersistentAccessFactory.getInstance();
View Full Code Here

Examples of com.aldaviva.autorpg.data.entities.Character.persist()

      character.setPlayer(player);
      character.setFemale(female);
     
      LOGGER.debug("new avatar's player attrib set to "+player.getName()+". Result of calling getter: "+character.getPlayer());
     
      character.persist();
      return character;
    } else {
      throw new MustRegisterToCreateAvatarError();
    }
  }
View Full Code Here

Examples of com.aldaviva.autorpg.data.entities.Configuration.persist()

    for (ConfigurationKey key: ConfigurationKey.values()){
      if(Configuration.findConfiguration(key) == null){
        Configuration config = new Configuration();
        config.setKey(key);
        config.setValue(key.getDefaultValue());
        config.persist();
        LOGGER.info("Set config "+key+" to default value of \""+config.getValue()+"\"");
      }
    }
  }
View Full Code Here

Examples of com.aldaviva.autorpg.data.entities.Player.persist()

    player.setSuperuser(false);
   
    String hashedPassword = Utils.hash(playerName+password);
    player.setPassword(hashedPassword);
   
    player.persist();
    LOGGER.info("Player "+player.getName()+" registered.");
    return player;
  }
 
  public Character createCharacter(String userhost, String avatarName, String designation, boolean female) throws MustRegisterToCreateAvatarError{
View Full Code Here

Examples of com.alibaba.rocketmq.broker.subscription.SubscriptionGroupManager.persist()

                    subscriptionGroupManager.getDataVersion().assignNewOne(
                        subscriptionWrapper.getDataVersion());
                    subscriptionGroupManager.getSubscriptionGroupTable().clear();
                    subscriptionGroupManager.getSubscriptionGroupTable().putAll(
                        subscriptionWrapper.getSubscriptionGroupTable());
                    subscriptionGroupManager.persist();
                    log.info("update slave Subscription Group from master, {}", masterAddrBak);
                }
            }
            catch (Exception e) {
                log.error("syncSubscriptionGroup Exception, " + masterAddrBak, e);
View Full Code Here

Examples of com.cloud.service.dao.ServiceOfferingDaoImpl.persist()

        if ((iopsWriteRate != null) && (iopsWriteRate > 0))
            serviceOffering.setIopsWriteRate(iopsWriteRate);

        ServiceOfferingDaoImpl dao = ComponentContext.inject(ServiceOfferingDaoImpl.class);
        try {
            dao.persist(serviceOffering);
        } catch (Exception e) {
            s_logger.error("error creating service offering", e);

        }
        /*
 
View Full Code Here

Examples of com.cloud.storage.dao.DiskOfferingDaoImpl.persist()

        if (iopsWriteRate != null && (iopsWriteRate > 0))
            diskOffering.setIopsWriteRate(iopsWriteRate);

        DiskOfferingDaoImpl offering = ComponentContext.inject(DiskOfferingDaoImpl.class);
        try {
            offering.persist(diskOffering);
        } catch (Exception e) {
            s_logger.error("error creating disk offering", e);

        }
        /*
 
View Full Code Here

Examples of com.cloud.utils.db.GenericDao.persist()

    public long submitAsyncJob(AsyncJob job, boolean scheduleJobExecutionInContext) {
        @SuppressWarnings("rawtypes")
        GenericDao dao = GenericDaoBase.getDao(job.getClass());
        job.setInitMsid(getMsid());
        job.setSyncSource(null);        // no sync source originally
        dao.persist(job);

        publishOnEventBus(job, "submit");
        scheduleExecution(job, scheduleJobExecutionInContext);
        if (s_logger.isDebugEnabled()) {
            s_logger.debug("submit async job-" + job.getId() + ", details: " + job.toString());
View Full Code Here

Examples of com.google.gwt.sample.expenses.server.domain.Employee.persist()

            e.setDepartment(employee.department);
            e.setDisplayName(employee.displayName);
            e.setPassword(employee.password);
            e.setSupervisorKey(employee.supervisorKey);
            e.setUserName(employee.userName);
            e.persist();
            return e.getId();
          }
         
          @Override
          public long storeExpense(ExpenseDTO expense) {
View Full Code Here

Examples of com.google.gwt.sample.expenses.server.domain.Expense.persist()

            e.setCreated(expense.created);
            e.setAmount(expense.amount);
            e.setCategory(expense.category);
            e.setApproval(expense.approval);
            e.setReasonDenied(expense.reasonDenied);
            e.persist();
            return e.getId();
          }

          @Override
          public long storeReport(ReportDTO report) {
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.