public boolean setDados() { boolean retorno = true; classe.setPokerPagarId(Integer.valueOf(hdnCod.getValueAsString())); if (!hdnForma.getValueAsString().equals("0")) { PokerForma forma = new PokerForma(Integer.valueOf(hdnForma.getValueAsString())); classe.setPokerForma(forma); } if (!hdnCash.getValueAsString().equals("0")) { PokerCash cash = new PokerCash(Integer.valueOf(hdnCash.getValueAsString())); classe.setPokerCash(cash); } classe.setPokerPagarDescricao(cmbCliente.getRawValue()); if (txtValor.getValue() != null) { classe.setPokerPagarValor(txtValor.getValue().intValue()); } classe.setPokerPagarCadastrado(dtCadastro); if (pago) { classe.setPokerPagarRealizado(new Date()); } classe.setPokerPagarAtivo(pago); return retorno; }