예제 #1
0
  public FormaPagamentoModel obter(final FormaPagamentoModel model) {

    TSDataBaseBrokerIf broker = TSDataBaseBrokerFactory.getDataBaseBrokerIf();

    broker.setPropertySQL("formapagamentodao.obter", model.getId());

    return (FormaPagamentoModel)
        broker.getObjectBean(
            FormaPagamentoModel.class, "id", "descricao", "flagAtivo", "flagExibirOrigem");
  }
예제 #2
0
  public void alterar(final FormaPagamentoModel model) throws TSApplicationException {

    TSDataBaseBrokerIf broker = TSDataBaseBrokerFactory.getDataBaseBrokerIf();

    broker.setPropertySQL(
        "formapagamentodao.alterar",
        model.getDescricao(),
        model.getFlagAtivo(),
        model.getFlagExibirOrigem(),
        model.getId());

    broker.execute();
  }