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"); }
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(); }