Package dao.tro

Examples of dao.tro.FlightComparatorTimeDesc


    @Override
    public int doEndTag() throws JspException {
        IAirportDAO factory =  DAOFactory.getDAOFactory(1).getAirportDAO();
        ArrayList<Flight> flightList = (ArrayList<Flight>) DAOFactory.getDAOFactory(1).getFlightDAO().flightList(flightCount);
        Collections.sort(flightList, new FlightComparatorTimeDesc());
        try {
            for (Flight flight: flightList) {
                flight.setDepartureAirport(factory.loadCountryName(flight.getDepartureAirport()));
                flight.setDestinationAirport(factory.loadCountryName(flight.getDestinationAirport()));
                pageContext.setAttribute("singleFlight", flight, PageContext.REQUEST_SCOPE);
View Full Code Here

TOP

Related Classes of dao.tro.FlightComparatorTimeDesc

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.