edu.uoc.pfc.lcamps.webapp.catwings.service.impl
Class VolServiceImpl

java.lang.Object
  extended by edu.uoc.pfc.lcamps.webapp.catwings.service.impl.VolServiceImpl
All Implemented Interfaces:
VolService

public class VolServiceImpl
extends java.lang.Object
implements VolService

Classe que implementa la interfície que gestiona el vol

Author:
Llorenç Camps

Constructor Summary
VolServiceImpl()
           
 
Method Summary
 void deleteVol(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, VolVO vol)
          Esborrem el vol
 AeroportService getAeroportService()
           
 VolResultVO getInfoLlistatVols(ConsultaVO consultaVO)
          A partir de les dades que ha introdït l'usuari buscarem el llistat de vols segons els paràmetres passats
 VolResultVO getInfoVols(ConsultaVO consultaVO)
          A partir de les dades que ha introdït l'usuari buscarem la informacio dels vols segons els paràmetres passats
 int getNumPlacesDisponibles(int numVol)
          A partir del numero de vol obtenim el número de places disponibles
 VolVO getVolByNumVol(int numVol)
          Obtenim el Vol
 VolDAO getVolDAO()
           
 VolVO getVolUpdateNomAeroportByNumVol(int numVol)
          Obtenim el vol amb els noms de l'origen/desti extrets de les dades de l'aeroport
 void setAeroportService(AeroportService aeroportService)
           
 void setVolDAO(VolDAO volDAO)
           
 void updateVol(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, VolVO vol)
          Actualitzem el vol
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolServiceImpl

public VolServiceImpl()
Method Detail

setAeroportService

public void setAeroportService(AeroportService aeroportService)
Parameters:
aeroportService - the aeroportService to set

getAeroportService

public AeroportService getAeroportService()
Returns:
the aeroportService

getVolDAO

public VolDAO getVolDAO()
Returns:
the volDAO

setVolDAO

public void setVolDAO(VolDAO volDAO)
Parameters:
volDAO - the volDAO to set

getInfoLlistatVols

public VolResultVO getInfoLlistatVols(ConsultaVO consultaVO)
Description copied from interface: VolService
A partir de les dades que ha introdït l'usuari buscarem el llistat de vols segons els paràmetres passats

Specified by:
getInfoLlistatVols in interface VolService
Returns:

getInfoVols

public VolResultVO getInfoVols(ConsultaVO consultaVO)
Description copied from interface: VolService
A partir de les dades que ha introdït l'usuari buscarem la informacio dels vols segons els paràmetres passats

Specified by:
getInfoVols in interface VolService
Returns:

getVolByNumVol

public VolVO getVolByNumVol(int numVol)
                     throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: VolService
Obtenim el Vol

Specified by:
getVolByNumVol in interface VolService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getNumPlacesDisponibles

public int getNumPlacesDisponibles(int numVol)
Description copied from interface: VolService
A partir del numero de vol obtenim el número de places disponibles

Specified by:
getNumPlacesDisponibles in interface VolService
Returns:

updateVol

public void updateVol(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                      VolVO vol)
               throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: VolService
Actualitzem el vol

Specified by:
updateVol in interface VolService
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

deleteVol

public void deleteVol(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                      VolVO vol)
               throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: VolService
Esborrem el vol

Specified by:
deleteVol in interface VolService
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getVolUpdateNomAeroportByNumVol

public VolVO getVolUpdateNomAeroportByNumVol(int numVol)
                                      throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: VolService
Obtenim el vol amb els noms de l'origen/desti extrets de les dades de l'aeroport

Specified by:
getVolUpdateNomAeroportByNumVol in interface VolService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException