Examples of criar()


Examples of br.com.moonjava.flight.dao.base.AeronaveDAO.criar()

    request.set("codigo", codigo);
    request.set("qtdDeAssento", qtdAssentos);
    request.set("mapa", mapa);

    Aeronave aeronave = new AeronaveCreate(request).createInstance();
    dao.criar(aeronave);

    request = new RequestParamWrapper();

    List<Aeronave> res = dao.consultar(request);
    assertThat(res.size(), equalTo(3));
View Full Code Here

Examples of br.com.moonjava.flight.dao.base.PessoaFisicaDAO.criar()

    request.set("telResidencial", telResidencial);
    request.set("telCelular", telCelular);
    request.set("email", email);

    PessoaFisica pf = new PessoaFisicaCreate(request).createInstance();
    dao.criar(pf);

    PessoaFisica res = dao.consultarPorCpf(CPF.valueOf(cpf));
    assertThat(res.getNome(), equalTo(nome));
    assertThat(res.getSobrenome(), equalTo(sobrenome));
    assertThat(res.getDataNascimento(), equalTo(nascimento));
View Full Code Here

Examples of br.com.moonjava.flight.dao.base.UsuarioDAO.criar()

    request.set("perfil", perfil);
    request.set("login", login);
    request.set("senha", senha);

    Usuario usuario = new UsuarioCreate(request).createInstance();
    dao.criar(usuario);

    request2.set("login", "teste");
    List<Usuario> lres = dao.consultar(request2);
    assertThat(lres.size(), equalTo(3));
View Full Code Here

Examples of br.com.moonjava.flight.dao.base.VooDAO.criar()

    request.set("chegada", chegada);
    request.set("assentoLivre", assentoLivre);
    request.set("preco", preco);

    Voo voo = new VooCreate(request).createInstance();
    vooDAO.criar(voo);

    request = new RequestParamWrapper();

    request.set("status", Status.DISPONIVEL);
View Full Code Here

Examples of br.com.moonjava.flight.model.base.Aeronave.criar()

        // Executa se nome de arquivo for igual a aeronave
        if (fileName.equals(res)) {
          Aeronave pojo = new AeronaveCreate(request).createInstance();
          Aeronave aeronave = new AeronaveModel();
          aeronave.criar(pojo);
          messageOK();
        } else {
          messageFailed();
        }
View Full Code Here

Examples of br.com.moonjava.flight.model.base.AeronaveModel.criar()

        // Executa se nome de arquivo for igual a aeronave
        if (fileName.equals(res)) {
          Aeronave pojo = new AeronaveCreate(request).createInstance();
          Aeronave aeronave = new AeronaveModel();
          aeronave.criar(pojo);
          messageOK();
        } else {
          messageFailed();
        }
View Full Code Here

Examples of br.com.moonjava.flight.model.base.PessoaFisicaModel.criar()

              request.set("cpf", _cpf.getDigito());
              request.set("telResidencial", _telResidencial);
              request.set("telCelular", _telCelular);

              PessoaFisica pojo = new PessoaFisicaCreate(request).createInstance();
              boolean executed = pessoaFisicaModel.criar(pojo);

              if (executed) {
                PessoaFisica pessoa = pessoaFisicaModel.consultarPorCPF(pojo.getCpf());
                request.set("pessoaFisica", pessoa.getId());
              } else {
View Full Code Here

Examples of br.com.moonjava.flight.model.base.ReembolsoModel.criar()

          request.set("conta", Integer.parseInt(request.stringParam("conta")));
          request.set("valor", Double.parseDouble(valor));
          request.set("cpf", _cpf.getDigito());
          Reembolso reembolso = new ReembolsoCreate(request).createInstance();

          status = model.criar(reembolso);
        } catch (Exception e2) {
          return;
        }
      }
View Full Code Here

Examples of ecar.intercambioDados.montador.MontadorLinhaResultadoValidacaoTXTFactory.criar()

   
    // analise semantica
    for (Iterator iterator = registros.iterator(); iterator.hasNext();) {
      IRegistro iRegistro = (IRegistro) iterator.next();
   
      montadorResulVal = (MontadorLinhaResultadoValidacaoItemEstruturaTXT)montaFact.criar(iRegistro, perfil);
      if (montadorResulVal != null) {
        objetoNegocio = importacao.montar(iRegistro, perfil, usuarioLogado);
       
        try {
          if (importacao.analisarSemantica(objetoNegocio, perfil)){
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.