Examples of LinhaPesquisaDAO


Examples of in980.rgms.persistence.LinhaPesquisaDAO

  @Override
  @Action(value = "excluirLinhaPesquisa", results = { @Result(name = "success", type = "redirectAction", params = {
      "actionName", "listarTodasLinhasPesquisa" }) })
  public String delete() {
    try {
      new LinhaPesquisaDAO().excluir(linhaPesquisa);
      setMsg("Membro : " + linhaPesquisa.getDescricao()
          + " excluido com sucesso.");
    } catch (Exception e) {
      e.printStackTrace();
      setMsg("Erro ao excluir a Linha de Pesquisa: " + e.getMessage());
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

  @Action(value = "inserirLinhaPesquisa", results = { @Result(location = "/cadastro_linha_pesquisa.jsp", name = "success") })
  public String insert() {
    try {
      linhaPesquisa.validateToPersist();
      if (linhaPesquisa != null && linhaPesquisa.getID() != null) {
        new LinhaPesquisaDAO().atualizar(linhaPesquisa);
      } else {
        new LinhaPesquisaDAO().inserir(linhaPesquisa);
      }
      setMsg("Linha de Pesquisa Inserida Com Sucesso");
    } catch (Exception e) {
      e.printStackTrace();
      setMsg("Erro ao Cadastrar a Linha de Pesquisa: " + e.getMessage());
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

  }

  @Action(value = "buscarLinhasPesquisa", results = { @Result(location = "/lista_linhas_pesquisas.jsp", name = "success") })
  public String searchByDescription() {
    try {
      linhasPesquisa = new LinhaPesquisaDAO().buscar(linhaPesquisa);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return "success";
  }
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

  }

  @Override
  @Action(value = "listarTodasLinhasPesquisa", results = { @Result(location = "/lista_linha_pesquisa.jsp", name = "success") })
  public String listAll() {
    linhasPesquisa = new LinhaPesquisaDAO().listaTodos();
    return "success";
  }
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

  @Action(value = "mostrarLinhaPesquisa", results = { @Result(location = "/cadastro_linha_pesquisa.jsp", name = "success") })
  public String mostrarLinhaPesquisa() {
    try {
      if (linhaPesquisa != null && linhaPesquisa.getID() != null) {
        linhaPesquisa = new LinhaPesquisaDAO()
            .buscaPeloId(linhaPesquisa.getID());
      }
    } catch (Exception e) {
      e.printStackTrace();
      setMsg("Linha de Pesquisa solicitada nao existe: ");
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

 
  public List<Membro> getMembros(){
    return new MembroDAO().listaTodos();
  }
  public List<LinhaPesquisa> getLinhasPesquisa(){
    return new LinhaPesquisaDAO().listaTodos();
  }
View Full Code Here

Examples of in980.rgms.persistence.LinhaPesquisaDAO

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public List<LinhaPesquisa> getLinhasPesquisa(){
    return new LinhaPesquisaDAO().listaTodos();
 
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.