All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.beans.demos.travel.flight.FlightInfoDapServerExports
- public interface interface FlightInfoDapServerExports
- extends Remote
This interface contains the methods that are called on the
FlightInfoDapServer from the FlightInfoDapClient to query the database for
matching flights and to reserve a particular flight schedule. Any
future versions of a server-side version of the FlightInfoDap (such as a
CORBA version) will also need to implement this interface.
- See Also:
- FlightInfoDapServer, FlightInfoDapClient
-
queryDataBase(TravelInfoChangedEvent)
- Queries the database to find all of the possible flight
choices that match the user request of origin city, destination
city, departure date, and return date.
-
reserveFlight(FlightRequestedEvent)
- Attempts to reserve the specified flight(s).
queryDataBase
public abstract FlightInfoEvent queryDataBase(TravelInfoChangedEvent travelInfoChange) throws RemoteException
- Queries the database to find all of the possible flight
choices that match the user request of origin city, destination
city, departure date, and return date.
- Parameters:
- travelInfoChange - The TravelInfoChanged event containing the travel info
- Returns:
- The FlightInfoEvent containing the flight info
- Throws: RemoteException
- Thrown if registry could not be contacted
reserveFlight
public abstract FlightReservedEvent reserveFlight(FlightRequestedEvent flightRequested) throws RemoteException
- Attempts to reserve the specified flight(s). This method is invoked by the FlightInfoDapClient
when the Itinerary bean has been wired to the FlightInfoDapClient bean and the user has selected
a preferred itinerary.
- Parameters:
- flightRequestedEvent - The FlightRequestedEvent containing the preferred flight itinerary.
- Returns:
- The FlightReservedEvent containing the reserved flight itinerary.
All Packages Class Hierarchy This Package Previous Next Index