Package br.com.cwi.tnt.rfp.arquitetura2.repository

Examples of br.com.cwi.tnt.rfp.arquitetura2.repository.GridEntityDataRepository


    }
   
    @RequestMapping(value="/index/grid/{id}", produces=MediaType.APPLICATION_JSON_VALUE, method= RequestMethod.DELETE)
    @ResponseStatus(HttpStatus.OK)
    public void excluirGridEntity(@PathVariable Long id){
        GridEntity entity = demoService.obterGridEntityPorId(id);
        if(entity != null){
            demoService.excluirGridEntity(entity);
        }
    }
View Full Code Here


        SingleRowEntity singleRow = demoService.obterSingleRowEntity();
        model.addAttribute("singleRow", singleRow);
        model.addAttribute("grid", demoService.obterTodosGridEntity());
       
        List<OpcaoCombo> opcaoCombos = new ArrayList<OpcaoCombo>();
        opcaoCombos.add(new OpcaoCombo("","Select one..."));
        opcaoCombos.add(new OpcaoCombo("ActionScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("AppleScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Asp").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("BASIC").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("C").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("C++").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Clojure").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("COBOL").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("ColdFusion").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Erlang").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Fortran").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Groovy").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Haskell").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Java").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("JavaScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Lisp").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Perl").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("PHP").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Python").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Ruby").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Scala").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Scheme").ajustSelected(singleRow.getCombo1()));
        model.addAttribute("opcaoCombos", opcaoCombos);
       
        return "index";
    }
View Full Code Here

    @Autowired
    private IDemoService demoService;
   
    @RequestMapping(value="/", method=RequestMethod.GET)
    public String handleHome(ModelMap model){
        SingleRowEntity singleRow = demoService.obterSingleRowEntity();
        model.addAttribute("singleRow", singleRow);
        model.addAttribute("grid", demoService.obterTodosGridEntity());
       
        List<OpcaoCombo> opcaoCombos = new ArrayList<OpcaoCombo>();
        opcaoCombos.add(new OpcaoCombo("","Select one..."));
        opcaoCombos.add(new OpcaoCombo("ActionScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("AppleScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Asp").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("BASIC").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("C").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("C++").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Clojure").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("COBOL").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("ColdFusion").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Erlang").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Fortran").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Groovy").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Haskell").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Java").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("JavaScript").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Lisp").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Perl").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("PHP").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Python").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Ruby").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Scala").ajustSelected(singleRow.getCombo1()));
        opcaoCombos.add(new OpcaoCombo("Scheme").ajustSelected(singleRow.getCombo1()));
        model.addAttribute("opcaoCombos", opcaoCombos);
       
        return "index";
    }
View Full Code Here

    public SingleRowEntity obterSingleRowEntity() {
        List<SingleRowEntity> lista = singleRowEntityDataRepository.obterTodos();
        if(!lista.isEmpty()){
            return lista.get(0);
        }
        return new SingleRowEntity();
    }
View Full Code Here

TOP

Related Classes of br.com.cwi.tnt.rfp.arquitetura2.repository.GridEntityDataRepository

Copyright © 2018 www.massapicom. 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.