Package br.com.cwi.tnt.rfp.arquitetura3.entity

Examples of br.com.cwi.tnt.rfp.arquitetura3.entity.GridEntity


   
    @DELETE
    @Path("grid/{id}")
  @Produces(MediaType.APPLICATION_JSON)
    public Response excluirGridEntity(@PathParam("id") Long id){
        GridEntity entity = demoService.obterGridEntityPorId(id);
        if(entity != null){
            demoService.excluirGridEntity(entity);
            return Response.status(Response.Status.OK).build();
        }
        return Response.status(Response.Status.NOT_FOUND).build();
View Full Code Here


    }
   
    @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

    public void salvarSingleRow(){
        this.singleRowEntity = this.demoService.salvarSingleRowEntity(singleRowEntity);
    }
   
    public void novoGridEntity(){
        this.gridEdit = new GridEntity();
    }
View Full Code Here

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

TOP

Related Classes of br.com.cwi.tnt.rfp.arquitetura3.entity.GridEntity

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.