com.ferri.service.impl
Class ContracteServiceImpl

java.lang.Object
  extended by com.ferri.service.commons.GenericBaseServiceImpl
      extended by com.ferri.service.impl.ContracteServiceImpl
All Implemented Interfaces:
GenericBaseService, ContracteService

public class ContracteServiceImpl
extends GenericBaseServiceImpl
implements ContracteService


Field Summary
private  ContadorDAO contadorDAO
           
private  ContracteDAO contracteDAO
           
private  IntervencioDAO intervencioDAO
           
private  TipusPeriodeDAO tipusPeriodeDAO
           
 
Fields inherited from class com.ferri.service.commons.GenericBaseServiceImpl
logger
 
Constructor Summary
ContracteServiceImpl()
           
 
Method Summary
 String createContracte(ContracteSrvInDTO contracteSrvInDTO)
          Crea una instancia Contracte
 Long createIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
          Crea una instancia Intervencio
 Boolean deleteContracte(ContracteSrvInDTO contracteSrvInDTO)
          Elimina una instancia Contracte
 Boolean deleteIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
          Elimina una instancia Intervencio
 ContracteSrvOutDTO getAllContracte()
          Carrega tots els Contractes
 IntervencioSrvOutDTO getAllIntervencio()
          Carrega totes les Intervencions
 TipusPeriodeSrvOutDTO getAllTipusPeriode()
          Carrega tots els TipusPeriode
 ContadorDAO getContadorDAO()
           
 ContracteSrvOutDTO getContracte(ContracteSrvInDTO contracteSrvInDTO)
          Busca sobre Contractes amb els criteris informats
 ContracteDAO getContracteDAO()
           
 ContracteSrvOutDTO getContractesByCriteria(ContracteSrvInDTO contracteSrvInDTO)
          Busca sobre Contractes amb els criteris informats
 IntervencioSrvOutDTO getIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
          Busca sobre Intervencions amb els criteris informats
 IntervencioDAO getIntervencioDAO()
           
 IntervencioSrvOutDTO getIntervenciosByCriteria(IntervencioSrvInDTO intervencioSrvInDTO)
          Busca sobre Intervencions amb els criteris informats
 TipusPeriodeSrvOutDTO getTipusPeriode(TipusPeriodeSrvInDTO tipusPeriodeSrvInDTO)
          Busca sobre TipusPeriode amb els criteris informats
 TipusPeriodeDAO getTipusPeriodeDAO()
           
 String nextNumeroContracte()
          Crida el següent numero de Contracte
 void setContadorDAO(ContadorDAO contadorDAO)
           
 void setContracteDAO(ContracteDAO contracteDAO)
           
 void setIntervencioDAO(IntervencioDAO intervencioDAO)
           
 void setTipusPeriodeDAO(TipusPeriodeDAO tipusPeriodeDAO)
           
 Boolean updateContracte(ContracteSrvInDTO contracteSrvInDTO)
          Actualitza una instancia Contracte
 Boolean updateIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
          Actualitza una instancia Intervencio
 
Methods inherited from class com.ferri.service.commons.GenericBaseServiceImpl
getBeansConverter, setBeansConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contracteDAO

private ContracteDAO contracteDAO

intervencioDAO

private IntervencioDAO intervencioDAO

tipusPeriodeDAO

private TipusPeriodeDAO tipusPeriodeDAO

contadorDAO

private ContadorDAO contadorDAO
Constructor Detail

ContracteServiceImpl

public ContracteServiceImpl()
Method Detail

updateContracte

public Boolean updateContracte(ContracteSrvInDTO contracteSrvInDTO)
                        throws CommonServiceException
Description copied from interface: ContracteService
Actualitza una instancia Contracte

Specified by:
updateContracte in interface ContracteService
Returns:
boolean resultat boolean resultat
Throws:
CommonServiceException

createContracte

public String createContracte(ContracteSrvInDTO contracteSrvInDTO)
                       throws CommonServiceException
Description copied from interface: ContracteService
Crea una instancia Contracte

Specified by:
createContracte in interface ContracteService
Returns:
String key
Throws:
CommonServiceException

deleteContracte

public Boolean deleteContracte(ContracteSrvInDTO contracteSrvInDTO)
                        throws CommonServiceException
Description copied from interface: ContracteService
Elimina una instancia Contracte

Specified by:
deleteContracte in interface ContracteService
Returns:
boolean resultat
Throws:
CommonServiceException

getContracte

public ContracteSrvOutDTO getContracte(ContracteSrvInDTO contracteSrvInDTO)
                                throws CommonServiceException
Description copied from interface: ContracteService
Busca sobre Contractes amb els criteris informats

Specified by:
getContracte in interface ContracteService
Returns:
ContracteSrvInDTO amb un Contracte
Throws:
CommonServiceException

getContractesByCriteria

public ContracteSrvOutDTO getContractesByCriteria(ContracteSrvInDTO contracteSrvInDTO)
                                           throws CommonServiceException
Description copied from interface: ContracteService
Busca sobre Contractes amb els criteris informats

Specified by:
getContractesByCriteria in interface ContracteService
Returns:
ContracteSrvInDTO amb una llista de Contractes
Throws:
CommonServiceException

getAllContracte

public ContracteSrvOutDTO getAllContracte()
                                   throws CommonServiceException
Description copied from interface: ContracteService
Carrega tots els Contractes

Specified by:
getAllContracte in interface ContracteService
Returns:
ContracteSrvInDTO amb tots els Contractes
Throws:
CommonServiceException

updateIntervencio

public Boolean updateIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
                          throws CommonServiceException
Description copied from interface: ContracteService
Actualitza una instancia Intervencio

Specified by:
updateIntervencio in interface ContracteService
Returns:
boolean resultat boolean resultat
Throws:
CommonServiceException

createIntervencio

public Long createIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
                       throws CommonServiceException
Description copied from interface: ContracteService
Crea una instancia Intervencio

Specified by:
createIntervencio in interface ContracteService
Returns:
Log key
Throws:
CommonServiceException

deleteIntervencio

public Boolean deleteIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
                          throws CommonServiceException
Description copied from interface: ContracteService
Elimina una instancia Intervencio

Specified by:
deleteIntervencio in interface ContracteService
Returns:
boolean resultat
Throws:
CommonServiceException

getIntervencio

public IntervencioSrvOutDTO getIntervencio(IntervencioSrvInDTO intervencioSrvInDTO)
                                    throws CommonServiceException
Description copied from interface: ContracteService
Busca sobre Intervencions amb els criteris informats

Specified by:
getIntervencio in interface ContracteService
Returns:
IntervencioSrvInDTO amb una Intercencio
Throws:
CommonServiceException

getIntervenciosByCriteria

public IntervencioSrvOutDTO getIntervenciosByCriteria(IntervencioSrvInDTO intervencioSrvInDTO)
                                               throws CommonServiceException
Description copied from interface: ContracteService
Busca sobre Intervencions amb els criteris informats

Specified by:
getIntervenciosByCriteria in interface ContracteService
Returns:
IntervencioSrvInDTO amb una llista de Intervencions
Throws:
CommonServiceException

getAllIntervencio

public IntervencioSrvOutDTO getAllIntervencio()
                                       throws CommonServiceException
Description copied from interface: ContracteService
Carrega totes les Intervencions

Specified by:
getAllIntervencio in interface ContracteService
Returns:
IntervencioSrvInDTO amb totes les Intervencions
Throws:
CommonServiceException

getTipusPeriode

public TipusPeriodeSrvOutDTO getTipusPeriode(TipusPeriodeSrvInDTO tipusPeriodeSrvInDTO)
                                      throws CommonServiceException
Description copied from interface: ContracteService
Busca sobre TipusPeriode amb els criteris informats

Specified by:
getTipusPeriode in interface ContracteService
Returns:
TipusPeriodeSrvInDTO amb un TipusPeriode
Throws:
CommonServiceException

getAllTipusPeriode

public TipusPeriodeSrvOutDTO getAllTipusPeriode()
                                         throws CommonServiceException
Description copied from interface: ContracteService
Carrega tots els TipusPeriode

Specified by:
getAllTipusPeriode in interface ContracteService
Returns:
TipusPeriodeSrvInDTO amb tots els TipusPeriode
Throws:
CommonServiceException

nextNumeroContracte

public String nextNumeroContracte()
                           throws CommonServiceException
Description copied from interface: ContracteService
Crida el següent numero de Contracte

Specified by:
nextNumeroContracte in interface ContracteService
Returns:
String amb el següent numero
Throws:
CommonServiceException

getContracteDAO

public ContracteDAO getContracteDAO()
Returns:
the intervencioDAO

setContracteDAO

public void setContracteDAO(ContracteDAO contracteDAO)
Parameters:
contracteDAO - the contracteDAO to set

getIntervencioDAO

public IntervencioDAO getIntervencioDAO()
Returns:
the intervencioDAO

setIntervencioDAO

public void setIntervencioDAO(IntervencioDAO intervencioDAO)
Parameters:
intervencioDAO - the intervencioDAO to set

getTipusPeriodeDAO

public TipusPeriodeDAO getTipusPeriodeDAO()
Returns:
the tipusPeriodeDAO

setTipusPeriodeDAO

public void setTipusPeriodeDAO(TipusPeriodeDAO tipusPeriodeDAO)
Parameters:
tipusPeriodeDAO - the tipusPeriodeDAO to set

getContadorDAO

public ContadorDAO getContadorDAO()
Returns:
the contadorDAO

setContadorDAO

public void setContadorDAO(ContadorDAO contadorDAO)
Parameters:
contadorDAO - the contadorDAO to set