Package br.com.msi.comparators

Examples of br.com.msi.comparators.OrdenarVisitantePorNome


        Visitantes visitantes = (Visitantes) getBean("visitantes");
        if (visitantes.getOrdenarPorNome() == -1) {
            modificarTabela = false;
            return;
        }
        OrdenarVisitantePorNome ordenarVisitantePorNome = new OrdenarVisitantePorNome();
        if (visitantes.getOrdenarPorNome() == 0) {
            try {
                visitantesList = visitantesSBeanLocal.consultaVisitantesListOrderByData(visitantesDto);
                Collections.sort(visitantesList, ordenarVisitantePorNome.crescente());
                modificarTabela = true;
            } catch (Exception ex) {
                tratamentoException.tratar(ex);
            }
        } else {
            try {
                visitantesList = visitantesSBeanLocal.consultaVisitantesListOrderByData(visitantesDto);
                Collections.sort(visitantesList, ordenarVisitantePorNome.decrescente());
                modificarTabela = true;
            } catch (Exception ex) {
                tratamentoException.tratar(ex);
            }
        }
View Full Code Here

TOP

Related Classes of br.com.msi.comparators.OrdenarVisitantePorNome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.