ejb.search
Class SearchBean

java.lang.Object
  |
  +--ejb.search.SearchBean
All Implemented Interfaces:
EnterpriseBean, Serializable, SessionBean

public class SearchBean
extends Object
implements SessionBean

This is the implementation of the Search stateless session bean. For information about the Reservation component, its behavior and exception handling, please see Reservation.

Version:
1.0
Author:
Team Two: Matthew Bass, Vijay Sai, Mannik Bhojwani, Paulo Merson
See Also:
Reservation, Serialized Form

Constructor Summary
SearchBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 FlightOptions getFlights(String fromCity, String toCity, Date departDate, Date returnDate, boolean isTwoWay, int numOfSeats)
           
 void setSessionContext(SessionContext arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBean

public SearchBean()
Method Detail

setSessionContext

public void setSessionContext(SessionContext arg0)
                       throws EJBException,
                              RemoteException
Specified by:
setSessionContext in interface SessionBean
See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)

ejbRemove

public void ejbRemove()
               throws EJBException,
                      RemoteException
Specified by:
ejbRemove in interface SessionBean
See Also:
SessionBean.ejbRemove()

ejbActivate

public void ejbActivate()
                 throws EJBException,
                        RemoteException
Specified by:
ejbActivate in interface SessionBean
See Also:
SessionBean.ejbActivate()

ejbPassivate

public void ejbPassivate()
                  throws EJBException,
                         RemoteException
Specified by:
ejbPassivate in interface SessionBean
See Also:
SessionBean.ejbPassivate()

ejbCreate

public void ejbCreate()
               throws EJBException,
                      RemoteException
See Also:
SessionBean.ejbPassivate()

getFlights

public FlightOptions getFlights(String fromCity,
                                String toCity,
                                Date departDate,
                                Date returnDate,
                                boolean isTwoWay,
                                int numOfSeats)
See Also:
Search.getFlights(java.lang.String, java.lang.String, java.sql.Date, java.sql.Date, boolean, int)


Copyright © 2003 Team Two.