org.objectweb.jass.examples.travelagency.ejbs
Interface Airline

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Airline
extends javax.ejb.EJBObject

Author:
fran Date: Feb 16, 2004 org.objectweb.jass.examples.travelagency.ejbsAirline.java

Method Summary
 int getFreeSeats()
           
 int reserveSeats(int nSeats)
           
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getFreeSeats

public int getFreeSeats()
                 throws java.rmi.RemoteException,
                        java.sql.SQLException
Throws:
java.rmi.RemoteException
java.sql.SQLException

reserveSeats

public int reserveSeats(int nSeats)
                 throws java.rmi.RemoteException,
                        NotEnoughSeatsException,
                        java.sql.SQLException
Throws:
java.rmi.RemoteException
NotEnoughSeatsException
java.sql.SQLException