Examples of saveOrUpdate()


Examples of org.springframework.samples.mvc31.crudcontroller.AccountManager.saveOrUpdate()

    Account account = new Account();
    BindingResult result =
        new BeanPropertyBindingResult(account, "account");
   
    AccountManager mgr = createMock(AccountManager.class);
    mgr.saveOrUpdate(account);
    replay(mgr);

    AccountController contrlr = new AccountController(mgr);
   
    String view = contrlr.save(account, result);
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.ProcessDictionaryDAO.saveOrUpdate()

       
        ProcessDBDictionary dictionary = dictionaryDao.fetchProcessDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
        if(dictionary == null)
        {
          dictionary = createDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
          dictionaryDao.saveOrUpdate(dictionary);
        }
       
        dictionaryDao.createOrUpdateDictionaryItem(dictionary, changeRequest.getDictionaryItemKey(), changeRequest.getDictionaryItemValue());
      }
     
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.saveOrUpdate()

    protected UserData updateUserInternal(ProcessToolContext ctx, UserData user) {
        UserDataDAO dao = ctx.getUserDataDAO();
        UserData base = dao.loadOrCreateUserByLogin(user);
        UserData merged = UserConverterUtils.mergeUsers(base, user);
        dao.saveOrUpdate(merged);
        return merged;
    }

    @Override
    public List<UserData> updateUsers(final Collection<UserData> users) {
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.