edu.uoc.pfc.lcamps.webapp.catwings.service
Interface PassatgerService

All Known Implementing Classes:
PassatgerServiceImpl

public interface PassatgerService

InterfĂ­cie que ens serveix per gestionar les diferents operacions sobre el passatger

Author:
Llorenç Camps

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
 

Method Detail

crearPassatger

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

Parameters:
sessio -
passatger -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getContacteByEmailCodi

PassatgerVO getContacteByEmailCodi(java.lang.String codi,
                                   java.lang.String email)
                                   throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
obtenim el contacte a partir del correu i el codi

Parameters:
codi -
email -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getContacteByCodi

PassatgerVO getContacteByCodi(java.lang.String codi)
                              throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
obtenim el contacte a partir del codi

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAllPassatgers

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

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAllPassatgersPaguen

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

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

deletePassatger

void deletePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                     PassatgerVO passatger)
                     throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Esborrem el passatger

Parameters:
sessio -
passatger -
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getAdultsByCodi

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

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getNensByCodi

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

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

getInfantsByCodi

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

Parameters:
codi -
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException