Subversion Repositories Integrator Subversion

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

package br.com.ec.domain.dto;

import br.com.ec.domain.model.Cliente;
import br.edu.cesmac.core.consulta.ParametrosConsulta;
import br.edu.cesmac.core.util.VerificadorUtil;

public class ParametrosConsultaClienteDTO extends ParametrosConsulta<Cliente> {

        private static String SEM_RESTRICOES_GERAL = "0";
       
        private Cliente cliente;
        private String tipoRelatorioCliente;
       
        public ParametrosConsultaClienteDTO() {
                this.tipoRelatorioCliente = SEM_RESTRICOES_GERAL;
        }
       
        @Override
        public Cliente getEntidade() {
                return getCliente();
        }
       
        public Cliente getCliente() {
                if (VerificadorUtil.estaNulo(cliente)) {
                        cliente = new Cliente();
                }
                return cliente;
        }
        public void setCliente(Cliente cliente) {
                this.cliente = cliente;
        }
       
        public String getTipoRelatorioCliente() {
                return tipoRelatorioCliente;
        }
        public void setTipoRelatorioCliente(String tipoRelatorioCliente) {
                this.tipoRelatorioCliente = tipoRelatorioCliente;
        }
       
        /***************************************************/
       
       
       
}