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

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

public class PassatgerServiceImpl
extends java.lang.Object
implements PassatgerService

Classe que implementa la interfĂ­cie que gestiona el passatger

Author:
Llorenç Camps

Constructor Summary
PassatgerServiceImpl()
           
 
Method Summary
 int crearPassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, PassatgerVO passatger)
          insertem el passatger i retorna l'id generat
 void deletePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, PassatgerVO passatger)
          Esborrem el passatger
 java.util.List<PassatgerVO> getAdultsByCodi(java.lang.String codi)
          obtenim el llistat d'adults a partir del codi
 java.util.List<PassatgerVO> getAllPassatgers(java.lang.String codi)
          Obtenim el llistat de tots els passatgers
 java.util.List<PassatgerVO> getAllPassatgersPaguen(java.lang.String codi)
          Obtenim el llistat de tots els passatgers que paguen
 PassatgerVO getContacteByCodi(java.lang.String codi)
          obtenim el contacte a partir del codi
 PassatgerVO getContacteByEmailCodi(java.lang.String codi, java.lang.String email)
          obtenim el contacte a partir del correu i el codi
 java.util.List<PassatgerVO> getInfantsByCodi(java.lang.String codi)
          obtenim el llistat d'infants a partir del codi
 java.util.List<PassatgerVO> getNensByCodi(java.lang.String codi)
          obtenim el llistat de nens a partir del codi
 PassatgerDAO getPassatgerDAO()
           
 void setPassatgerDAO(PassatgerDAO passatgerDAO)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassatgerServiceImpl

public PassatgerServiceImpl()
Method Detail

setPassatgerDAO

public void setPassatgerDAO(PassatgerDAO passatgerDAO)
Parameters:
passatgerDAO - the passatgerDAO to set

getPassatgerDAO

public PassatgerDAO getPassatgerDAO()
Returns:
the passatgerDAO

crearPassatger

public int crearPassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                          PassatgerVO passatger)
                   throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
insertem el passatger i retorna l'id generat

Specified by:
crearPassatger in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getContacteByEmailCodi

public PassatgerVO getContacteByEmailCodi(java.lang.String codi,
                                          java.lang.String email)
                                   throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
obtenim el contacte a partir del correu i el codi

Specified by:
getContacteByEmailCodi in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getContacteByCodi

public PassatgerVO getContacteByCodi(java.lang.String codi)
                              throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
obtenim el contacte a partir del codi

Specified by:
getContacteByCodi in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAllPassatgers

public java.util.List<PassatgerVO> getAllPassatgers(java.lang.String codi)
                                             throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
Obtenim el llistat de tots els passatgers

Specified by:
getAllPassatgers in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAllPassatgersPaguen

public java.util.List<PassatgerVO> getAllPassatgersPaguen(java.lang.String codi)
                                                   throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
Obtenim el llistat de tots els passatgers que paguen

Specified by:
getAllPassatgersPaguen in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

deletePassatger

public void deletePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                            PassatgerVO passatger)
                     throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
Esborrem el passatger

Specified by:
deletePassatger in interface PassatgerService
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAdultsByCodi

public java.util.List<PassatgerVO> getAdultsByCodi(java.lang.String codi)
                                            throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
obtenim el llistat d'adults a partir del codi

Specified by:
getAdultsByCodi in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getNensByCodi

public java.util.List<PassatgerVO> getNensByCodi(java.lang.String codi)
                                          throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
obtenim el llistat de nens a partir del codi

Specified by:
getNensByCodi in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getInfantsByCodi

public java.util.List<PassatgerVO> getInfantsByCodi(java.lang.String codi)
                                             throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerService
obtenim el llistat d'infants a partir del codi

Specified by:
getInfantsByCodi in interface PassatgerService
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException