Overview

Summary

ContactDonateImprint


Appendix E-3: BOOKING SEAT (UI prompt)


BookingSeatFlightModuleZeppelinFlight

Properties (4)

PropertyTypeEntityReferenceModule
(1) BookingINTBookingSeatBookingCustomerModule
(2) CurrencySTRINGBookingSeat
(3) FlightSeatINTBookingSeatFlightSeatFlightModule
(4) PriceSTRINGBookingSeat


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /bookingseat/booking/{id}findAllBookingSeatOfBooking(id)FlightModuleGETBooking BookingSeat
(2) /bookingseat/flightseat/{id}findAllBookingSeatOfFlightSeat(id)FlightModuleGETFlightSeat BookingSeat
(3) /bookingseatinsertBookingSeat(bookingseat)FlightModulePOSTBookingSeat
(4) /bookingseat/{id}deleteBookingSeatById(id)FlightModuleDELETEBookingSeat
(5) /bookingseatfindAllBookingSeat()FlightModuleGETBookingSeat
(6) /bookingseat/{id}updateBookingSeatById(bookingseat)FlightModulePUTBookingSeat
(7) /bookingseat/{id}findBookingSeatById(id)FlightModuleGETBookingSeat





Example:

final BookingSeat bookingseat = (BookingSeat) invokeModule(FLIGHT_MODULE + "/bookingseat/" + id, BookingSeat.class);
if (bookingseat != null) {
    final FlightSeat flightseat1 = (FlightSeat) invokeModule(FLIGHT_MODULE + "/flightseat/" + bookingseat.getFlightSeat().getId(), FlightSeat.class);
    if (flightseat1 != null) {
        final Seat seat2 = (Seat) invokeModule(ZEPPELIN_MODULE + "/seat/" + flightseat1.getSeat().getId(), Seat.class);
        if (seat2 != null) {
            final Zeppelin zeppelin3 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + seat2.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin3 != null) {
                final ZeppelinClass zeppelinclass4 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin3.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass4 != null) {
                    final Organization manufacturer5 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass4.getManufacturer().getId(), Organization.class);
                    if (manufacturer5 != null) {
                        final Location headquarterslocation6 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer5.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation6 != null) {
                            final Country country7 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation6.getCountry().getId(), Country.class);
                            if (country7 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation8 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin3.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation8 != null) {
                    final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation8.getCountry().getId(), Country.class);
                    if (country9 != null) {
                    }
                }
                final Organization operator10 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin3.getOperator().getId(), Organization.class);
                if (operator10 != null) {
                    final Location headquarterslocation11 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator10.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation11 != null) {
                        final Country country12 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation11.getCountry().getId(), Country.class);
                        if (country12 != null) {
                        }
                    }
                }
            }
        }
        final Flight flight13 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + flightseat1.getFlight().getId(), Flight.class);
        if (flight13 != null) {
            final FlightRoute flightroute14 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight13.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute14 != null) {
                final Location departurelocation15 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute14.getDepartureLocation().getId(), Location.class);
                if (departurelocation15 != null) {
                    final Country country16 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation15.getCountry().getId(), Country.class);
                    if (country16 != null) {
                    }
                }
                final Hangar defaulthangar17 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute14.getDefaultHangar().getId(), Hangar.class);
                if (defaulthangar17 != null) {
                    final Location location18 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar17.getLocation().getId(), Location.class);
                    if (location18 != null) {
                        final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location18.getCountry().getId(), Country.class);
                        if (country19 != null) {
                        }
                    }
                }
                final Location arrivallocation20 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute14.getArrivalLocation().getId(), Location.class);
                if (arrivallocation20 != null) {
                    final Country country21 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation20.getCountry().getId(), Country.class);
                    if (country21 != null) {
                    }
                }
            }
            final Zeppelin zeppelin22 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight13.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin22 != null) {
                final ZeppelinClass zeppelinclass23 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin22.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass23 != null) {
                    final Organization manufacturer24 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass23.getManufacturer().getId(), Organization.class);
                    if (manufacturer24 != null) {
                        final Location headquarterslocation25 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer24.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation25 != null) {
                            final Country country26 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation25.getCountry().getId(), Country.class);
                            if (country26 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation27 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin22.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation27 != null) {
                    final Country country28 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation27.getCountry().getId(), Country.class);
                    if (country28 != null) {
                    }
                }
                final Organization operator29 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin22.getOperator().getId(), Organization.class);
                if (operator29 != null) {
                    final Location headquarterslocation30 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator29.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation30 != null) {
                        final Country country31 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation30.getCountry().getId(), Country.class);
                        if (country31 != null) {
                        }
                    }
                }
            }
        }
    }
    final Booking booking32 = (Booking) invokeModule(CUSTOMER_MODULE + "/booking/" + bookingseat.getBooking().getId(), Booking.class);
    if (booking32 != null) {
        final Flight flight33 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + booking32.getFlight().getId(), Flight.class);
        if (flight33 != null) {
            final FlightRoute flightroute34 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight33.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute34 != null) {
                final Location departurelocation35 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute34.getDepartureLocation().getId(), Location.class);
                if (departurelocation35 != null) {
                    final Country country36 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation35.getCountry().getId(), Country.class);
                    if (country36 != null) {
                    }
                }
                final Hangar defaulthangar37 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute34.getDefaultHangar().getId(), Hangar.class);
                if (defaulthangar37 != null) {
                    final Location location38 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar37.getLocation().getId(), Location.class);
                    if (location38 != null) {
                        final Country country39 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location38.getCountry().getId(), Country.class);
                        if (country39 != null) {
                        }
                    }
                }
                final Location arrivallocation40 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute34.getArrivalLocation().getId(), Location.class);
                if (arrivallocation40 != null) {
                    final Country country41 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation40.getCountry().getId(), Country.class);
                    if (country41 != null) {
                    }
                }
            }
            final Zeppelin zeppelin42 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight33.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin42 != null) {
                final ZeppelinClass zeppelinclass43 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin42.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass43 != null) {
                    final Organization manufacturer44 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass43.getManufacturer().getId(), Organization.class);
                    if (manufacturer44 != null) {
                        final Location headquarterslocation45 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer44.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation45 != null) {
                            final Country country46 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation45.getCountry().getId(), Country.class);
                            if (country46 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation47 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin42.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation47 != null) {
                    final Country country48 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation47.getCountry().getId(), Country.class);
                    if (country48 != null) {
                    }
                }
                final Organization operator49 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin42.getOperator().getId(), Organization.class);
                if (operator49 != null) {
                    final Location headquarterslocation50 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator49.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation50 != null) {
                        final Country country51 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation50.getCountry().getId(), Country.class);
                        if (country51 != null) {
                        }
                    }
                }
            }
        }
        final Customer customer52 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + booking32.getCustomer().getId(), Customer.class);
        if (customer52 != null) {
            final Country country53 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer52.getCountry().getId(), Country.class);
            if (country53 != null) {
            }
        }
    }
}
return bookingseat;


Overview

Summary

ContactDonateImprint