Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 106 | espaco | 1 | package br.com.ec.domain.dto; |
| 2 | |||
| 3 | import br.com.ec.domain.model.Cliente; |
||
| 4 | import br.edu.cesmac.core.consulta.ParametrosConsulta; |
||
| 5 | import br.edu.cesmac.core.util.VerificadorUtil; |
||
| 6 | |||
| 7 | public class ParametrosConsultaClienteDTO extends ParametrosConsulta<Cliente> { |
||
| 8 | |||
| 9 | private static String SEM_RESTRICOES_GERAL = "0"; |
||
| 10 | |||
| 11 | private Cliente cliente; |
||
| 12 | private String tipoRelatorioCliente; |
||
| 13 | |||
| 14 | public ParametrosConsultaClienteDTO() { |
||
| 15 | this.tipoRelatorioCliente = SEM_RESTRICOES_GERAL; |
||
| 16 | } |
||
| 17 | |||
| 18 | @Override |
||
| 19 | public Cliente getEntidade() { |
||
| 20 | return getCliente(); |
||
| 21 | } |
||
| 22 | |||
| 23 | public Cliente getCliente() { |
||
| 24 | if (VerificadorUtil.estaNulo(cliente)) { |
||
| 25 | cliente = new Cliente(); |
||
| 26 | } |
||
| 27 | return cliente; |
||
| 28 | } |
||
| 29 | public void setCliente(Cliente cliente) { |
||
| 30 | this.cliente = cliente; |
||
| 31 | } |
||
| 32 | |||
| 33 | public String getTipoRelatorioCliente() { |
||
| 34 | return tipoRelatorioCliente; |
||
| 35 | } |
||
| 36 | public void setTipoRelatorioCliente(String tipoRelatorioCliente) { |
||
| 37 | this.tipoRelatorioCliente = tipoRelatorioCliente; |
||
| 38 | } |
||
| 39 | |||
| 40 | /***************************************************/ |
||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | } |