edu.uoc.pfc.lcamps.webapp.catwings.bd.dao.impl
Class PassatgerDAOImpl

java.lang.Object
  extended by edu.uoc.pfc.lcamps.webapp.catwings.bd.dao.AbstractDAO<PassatgerVO>
      extended by edu.uoc.pfc.lcamps.webapp.catwings.bd.dao.impl.PassatgerDAOImpl
All Implemented Interfaces:
PassatgerDAO

public class PassatgerDAOImpl
extends AbstractDAO<PassatgerVO>
implements PassatgerDAO

Classe que implementa la interfĂ­cie del DAO del passatger

Author:
Llorenç Camps

Constructor Summary
PassatgerDAOImpl()
           
 
Method Summary
 void deletePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, PassatgerVO obj)
          Esborrem el passatger
 PassatgerQueryProvider getQueryProvider()
           
 int insertPassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, PassatgerVO obj)
          insertem el passatger i retorna l'id generat
 java.util.List<PassatgerVO> selectAdult(java.lang.String codi)
          Obtenim el llistat d'adults a partir del codi
 PassatgerVO selectContacte(java.lang.String codi)
          Obtenim el contacte a partir del codi
 PassatgerVO selectContacte(java.lang.String codi, java.lang.String email)
          Obtenim el contacte a partir del codi i de l'email
 java.util.List<PassatgerVO> selectInfant(java.lang.String codi)
          Obtenim el llistat d'infants a partir del codi
 java.util.List<PassatgerVO> selectNen(java.lang.String codi)
          Obtenim el llistat de nens a partir del codi
 java.util.List<PassatgerVO> selectPassatgers(java.lang.String codi)
          Obtenim tots els passatgers de la reserva
 java.util.List<PassatgerVO> selectPassatgersPaguen(java.lang.String codi)
          Obtenim tots els passatgers de la reserva que paguen (tots - infants)
 void setQueryProvider(PassatgerQueryProvider queryProvider)
           
 void updatePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio, PassatgerVO obj)
          Actualitza el passatger
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassatgerDAOImpl

public PassatgerDAOImpl()
Method Detail

setQueryProvider

public void setQueryProvider(PassatgerQueryProvider queryProvider)
Parameters:
queryProvider - the queryProvider to set

getQueryProvider

public PassatgerQueryProvider getQueryProvider()
Returns:
the queryProvider

insertPassatger

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

Specified by:
insertPassatger in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectContacte

public PassatgerVO selectContacte(java.lang.String codi,
                                  java.lang.String email)
                           throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerDAO
Obtenim el contacte a partir del codi i de l'email

Specified by:
selectContacte in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectContacte

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

Specified by:
selectContacte in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectAdult

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

Specified by:
selectAdult in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectNen

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

Specified by:
selectNen in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectInfant

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

Specified by:
selectInfant in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

updatePassatger

public void updatePassatger(edu.uoc.pfc.lcamps.persistenciaFW.admin.session.SessionFW sessio,
                            PassatgerVO obj)
                     throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerDAO
Actualitza el passatger

Specified by:
updatePassatger in interface PassatgerDAO
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

deletePassatger

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

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

selectPassatgers

public java.util.List<PassatgerVO> selectPassatgers(java.lang.String codi)
                                             throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerDAO
Obtenim tots els passatgers de la reserva

Specified by:
selectPassatgers in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException

selectPassatgersPaguen

public java.util.List<PassatgerVO> selectPassatgersPaguen(java.lang.String codi)
                                                   throws edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException
Description copied from interface: PassatgerDAO
Obtenim tots els passatgers de la reserva que paguen (tots - infants)

Specified by:
selectPassatgersPaguen in interface PassatgerDAO
Returns:
Throws:
edu.uoc.pfc.lcamps.persistenciaFW.exception.DBException