📄 airlinereservationremoteobject.java
字号:
/*
* WebLogic Server Unleashed
*
*/
package com.wlsunleashed.ejb.session.stateless;
import java.rmi.RemoteException;
import java.util.Properties;
import javax.ejb.EJBObject;
/**
* This class represents he Remote interface to the ReservationProcessor
* Stateless Session EJB
*
* @version 1.0
*/
public interface AirlineReservationRemoteObject extends EJBObject {
/**
* Returns the flight information as a property file.
*
* @param flightNumber The flight number to be looked up
*
* @return Properties The flight information
*
* @throws RemoteException Thrown when anything goes wrong when attempting
* to invoke this method over RMI
* @throws AirlineReservationException Thrown when any business exception
* or high-level sub-system exception occurs
*/
Properties getFlightInfo(int flightNumber)
throws RemoteException, AirlineReservationException;
/**
* TODO
*
* @param origin TODO
* @param destination TODO
*
* @return TODO
*
* @exceptions RemoteException TODO
* @exceptions AirlineReservationException TODO
*/
/**
* Returns a list of flight numbers that operate between the given sets of
* cities
*
*/
int[] getFlightNumbers(String origin, String destination)
throws RemoteException, AirlineReservationException;
/**
* Reserves the number of seats on the given flight.
*
* @param flightNumber The flight number to be looked up
* @param numSeats The number of seats to be reserved.
*
* @throws RemoteException Thrown when anything goes wrong when attempting
* to invoke this method over RMI
* @throws AirlineReservationException Thrown when any business exception
* or high-level sub-system exception occurs
*/
void reserveSeats(int flightNumber, int numSeats)
throws RemoteException, AirlineReservationException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -