Overview

Summary

ServicesContactDonateAboutImprint


Appendix E-27: FLIGHT INSTANCE (UI prompt)


FlightInstanceFlightInstanceModuleAirlines

Properties (7)

PropertyTypeEntityReferenceModule
(1) ActualArrivalUtcSTRINGFlightInstance
(2) ActualDepartureUtcSTRINGFlightInstance
(3) AircraftLONGFlightInstanceAircraftAirlineModule
(4) FlightScheduleLONGFlightInstanceFlightScheduleFlightNumberModule
(5) ScheduledArrivalUtcSTRINGFlightInstance
(6) ScheduledDepartureUtcSTRINGFlightInstance
(7) StatusSTRINGFlightInstance


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /bookingsegment/flightinstance/{id}findAllBookingSegmentOfFlightInstance(id)BookingModuleGETFlightInstance BookingSegment
(2) /flightinstance/{id}deleteFlightInstanceById(id)FlightInstanceModuleDELETEFlightInstance
(3) /flightinstance/aircraft/{id}findAllFlightInstanceOfAircraft(id)FlightInstanceModuleGETAircraft FlightInstance
(4) /flightinstance/flightschedule/{id}findAllFlightInstanceOfFlightSchedule(id)FlightInstanceModuleGETFlightSchedule FlightInstance
(5) /flightinstancefindAllFlightInstance()FlightInstanceModuleGETFlightInstance
(6) /flightinstanceinsertFlightInstance(flightinstance)FlightInstanceModulePOSTFlightInstance
(7) /flightinstance/{id}updateFlightInstanceById(flightinstance)FlightInstanceModulePUTFlightInstance
(8) /flightinstance/{id}findFlightInstanceById(id)FlightInstanceModuleGETFlightInstance
(9) /flightcrewassignment/flightinstance/{id}findAllFlightCrewAssignmentOfFlightInstance(id)FlightInstanceModuleGETFlightInstance FlightCrewAssignment
(10) /loyaltytransaction/relatedflightinstance/{id}findAllLoyaltyTransactionOfRelatedFlightInstance(id)LoyaltyAccountModuleGETFlightInstance LoyaltyTransaction





Example:

final FlightInstance flightinstance = (FlightInstance) invokeModule(FLIGHT_INSTANCE_MODULE + "/flightinstance/" + id, FlightInstance.class);
if (flightinstance != null) {
    final FlightSchedule flightschedule1 = (FlightSchedule) invokeModule(FLIGHT_NUMBER_MODULE + "/flightschedule/" + flightinstance.getFlightSchedule().getId(), FlightSchedule.class);
    if (flightschedule1 != null) {
        final Route route2 = (Route) invokeModule(FLIGHT_NUMBER_MODULE + "/route/" + flightschedule1.getRoute().getId(), Route.class);
        if (route2 != null) {
            final Airport destinationairport3 = (Airport) invokeModule(AIRPORT_MODULE + "/airport/" + route2.getDestinationAirport().getId(), Airport.class);
            if (destinationairport3 != null) {
                final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + destinationairport3.getCountry().getId(), Country.class);
                if (country4 != null) {
                }
            }
            final Airline airline5 = (Airline) invokeModule(AIRLINE_MODULE + "/airline/" + route2.getAirline().getId(), Airline.class);
            if (airline5 != null) {
                final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + airline5.getCountry().getId(), Country.class);
                if (country6 != null) {
                }
            }
            final Airport originairport7 = (Airport) invokeModule(AIRPORT_MODULE + "/airport/" + route2.getOriginAirport().getId(), Airport.class);
            if (originairport7 != null) {
                final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + originairport7.getCountry().getId(), Country.class);
                if (country8 != null) {
                }
            }
        }
        final FlightNumber flightnumber9 = (FlightNumber) invokeModule(FLIGHT_NUMBER_MODULE + "/flightnumber/" + flightschedule1.getFlightNumber().getId(), FlightNumber.class);
        if (flightnumber9 != null) {
            final Airline airline10 = (Airline) invokeModule(AIRLINE_MODULE + "/airline/" + flightnumber9.getAirline().getId(), Airline.class);
            if (airline10 != null) {
                final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + airline10.getCountry().getId(), Country.class);
                if (country11 != null) {
                }
            }
        }
        final AircraftModel aircraftmodel12 = (AircraftModel) invokeModule(AIRCRAFT_MODEL_MODULE + "/aircraftmodel/" + flightschedule1.getAircraftModel().getId(), AircraftModel.class);
        if (aircraftmodel12 != null) {
            final AircraftManufacturer manufacturer13 = (AircraftManufacturer) invokeModule(COUNTRY_MODULE + "/aircraftmanufacturer/" + aircraftmodel12.getManufacturer().getId(), AircraftManufacturer.class);
            if (manufacturer13 != null) {
                final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + manufacturer13.getCountry().getId(), Country.class);
                if (country14 != null) {
                }
            }
        }
    }
    final Aircraft aircraft15 = (Aircraft) invokeModule(AIRLINE_MODULE + "/aircraft/" + flightinstance.getAircraft().getId(), Aircraft.class);
    if (aircraft15 != null) {
        final Airline airline16 = (Airline) invokeModule(AIRLINE_MODULE + "/airline/" + aircraft15.getAirline().getId(), Airline.class);
        if (airline16 != null) {
            final Country country17 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + airline16.getCountry().getId(), Country.class);
            if (country17 != null) {
            }
        }
        final AircraftModel aircraftmodel18 = (AircraftModel) invokeModule(AIRCRAFT_MODEL_MODULE + "/aircraftmodel/" + aircraft15.getAircraftModel().getId(), AircraftModel.class);
        if (aircraftmodel18 != null) {
            final AircraftManufacturer manufacturer19 = (AircraftManufacturer) invokeModule(COUNTRY_MODULE + "/aircraftmanufacturer/" + aircraftmodel18.getManufacturer().getId(), AircraftManufacturer.class);
            if (manufacturer19 != null) {
                final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + manufacturer19.getCountry().getId(), Country.class);
                if (country20 != null) {
                }
            }
        }
    }
}
return flightinstance;


Overview

Summary

ServicesContactDonateAboutImprint