com.ferri.service.impl
Class FacturaServiceImpl

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

public class FacturaServiceImpl
extends GenericBaseServiceImpl
implements FacturaService


Field Summary
private  ConstantsDAO constantsDAO
           
private  ContadorDAO contadorDAO
           
private  EstatDAO estatDAO
           
private  FacturaDAO facturaDAO
           
private  PressupostDAO pressupostDAO
           
 
Fields inherited from class com.ferri.service.commons.GenericBaseServiceImpl
logger
 
Constructor Summary
FacturaServiceImpl()
           
 
Method Summary
 String createFactura(FacturaSrvInDTO facturaSrvInDTO)
          Crea una instancia Factura
 String createPressupost(PressupostSrvInDTO pressupostSrvInDTO)
          Crea una instancia Pressupost
 Boolean deleteFactura(FacturaSrvInDTO facturaSrvInDTO)
          Elimina una instancia Factura
 Boolean deletePressupost(PressupostSrvInDTO pressupostSrvInDTO)
          Elimina una instancia Pressupost
 FacturaSrvOutDTO getAllFactura()
          Carrega totes les Factures
 PressupostSrvOutDTO getAllPressupost()
          Carrega tots els Pressupostos
 ConstantsSrvOutDTO getConstants(ConstantsSrvInDTO constantsSrvInDTO)
          Busca sobre Constants amb els criteris informats
 ConstantsDAO getConstantsDAO()
           
 ContadorDAO getContadorDAO()
           
 EstatSrvOutDTO getEstat(EstatSrvInDTO estatSrvInDTO)
          Busca sobre Estats amb els criteris informats
 EstatDAO getEstatDAO()
           
private  EstatSrvOutDTO getEstatsByPrefix(String prefix)
          Cerca un llista de entitats Estat depenent del prefix.
 EstatSrvOutDTO getEstatsContracte()
          Carrega tots els Estats de Contracte
 EstatSrvOutDTO getEstatsFactura()
          Carrega tots els Estats de Factura
 EstatSrvOutDTO getEstatsIntervencio()
          Carrega tots els Estats de Intervencio
 EstatSrvOutDTO getEstatsPressupost()
          Carrega tots els Estats de Pressupost
 FacturaSrvOutDTO getFactura(FacturaSrvInDTO facturaSrvInDTO)
          Busca sobre Factures amb els criteris informats
 FacturaDAO getFacturaDAO()
           
 FacturaSrvOutDTO getFacturasByCriteria(FacturaSrvInDTO facturaSrvInDTO)
          Busca sobre Factures amb els criteris informats
 PressupostSrvOutDTO getPressupost(PressupostSrvInDTO pressupostSrvInDTO)
          Busca sobre Pressupostos amb els criteris informats
 PressupostDAO getPressupostDAO()
           
 PressupostSrvOutDTO getPressupostsByCriteria(PressupostSrvInDTO pressupostSrvInDTO)
          Busca sobre Pressupostos amb els criteris informats
 String nextNumeroFactura()
          Crida el següent numero de Factura
 String nextNumeroPressupost()
          Crida el següent numero de Pressupost
 void setConstantsDAO(ConstantsDAO constantsDAO)
           
 void setContadorDAO(ContadorDAO contadorDAO)
           
 void setEstatDAO(EstatDAO estatDAO)
           
 void setFacturaDAO(FacturaDAO facturaDAO)
           
 void setPressupostDAO(PressupostDAO pressupostDAO)
           
 Boolean updateFactura(FacturaSrvInDTO facturaSrvInDTO)
          Actualitza una instancia Factura
 Boolean updatePressupost(PressupostSrvInDTO pressupostSrvInDTO)
          Actualitza una instancia Pressupost
 
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

facturaDAO

private FacturaDAO facturaDAO

pressupostDAO

private PressupostDAO pressupostDAO

estatDAO

private EstatDAO estatDAO

contadorDAO

private ContadorDAO contadorDAO

constantsDAO

private ConstantsDAO constantsDAO
Constructor Detail

FacturaServiceImpl

public FacturaServiceImpl()
Method Detail

updateFactura

public Boolean updateFactura(FacturaSrvInDTO facturaSrvInDTO)
                      throws CommonServiceException
Description copied from interface: FacturaService
Actualitza una instancia Factura

Specified by:
updateFactura in interface FacturaService
Returns:
boolean resultat
Throws:
CommonServiceException

createFactura

public String createFactura(FacturaSrvInDTO facturaSrvInDTO)
                     throws CommonServiceException
Description copied from interface: FacturaService
Crea una instancia Factura

Specified by:
createFactura in interface FacturaService
Returns:
String key
Throws:
CommonServiceException

deleteFactura

public Boolean deleteFactura(FacturaSrvInDTO facturaSrvInDTO)
                      throws CommonServiceException
Description copied from interface: FacturaService
Elimina una instancia Factura

Specified by:
deleteFactura in interface FacturaService
Returns:
boolean resultat
Throws:
CommonServiceException

getFactura

public FacturaSrvOutDTO getFactura(FacturaSrvInDTO facturaSrvInDTO)
                            throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Factures amb els criteris informats

Specified by:
getFactura in interface FacturaService
Returns:
FacturaSrvInDTO amb una Factura
Throws:
CommonServiceException

getFacturasByCriteria

public FacturaSrvOutDTO getFacturasByCriteria(FacturaSrvInDTO facturaSrvInDTO)
                                       throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Factures amb els criteris informats

Specified by:
getFacturasByCriteria in interface FacturaService
Returns:
FacturaSrvInDTO amb una llista de Factures
Throws:
CommonServiceException

getAllFactura

public FacturaSrvOutDTO getAllFactura()
                               throws CommonServiceException
Description copied from interface: FacturaService
Carrega totes les Factures

Specified by:
getAllFactura in interface FacturaService
Returns:
FacturaSrvInDTO amb totes les Factures
Throws:
CommonServiceException

updatePressupost

public Boolean updatePressupost(PressupostSrvInDTO pressupostSrvInDTO)
                         throws CommonServiceException
Description copied from interface: FacturaService
Actualitza una instancia Pressupost

Specified by:
updatePressupost in interface FacturaService
Returns:
boolean resultat
Throws:
CommonServiceException

createPressupost

public String createPressupost(PressupostSrvInDTO pressupostSrvInDTO)
                        throws CommonServiceException
Description copied from interface: FacturaService
Crea una instancia Pressupost

Specified by:
createPressupost in interface FacturaService
Returns:
String key
Throws:
CommonServiceException

deletePressupost

public Boolean deletePressupost(PressupostSrvInDTO pressupostSrvInDTO)
                         throws CommonServiceException
Description copied from interface: FacturaService
Elimina una instancia Pressupost

Specified by:
deletePressupost in interface FacturaService
Returns:
boolean resultat
Throws:
CommonServiceException

getPressupost

public PressupostSrvOutDTO getPressupost(PressupostSrvInDTO pressupostSrvInDTO)
                                  throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Pressupostos amb els criteris informats

Specified by:
getPressupost in interface FacturaService
Returns:
PressupostSrvInDTO amb un Pressupost
Throws:
CommonServiceException

getPressupostsByCriteria

public PressupostSrvOutDTO getPressupostsByCriteria(PressupostSrvInDTO pressupostSrvInDTO)
                                             throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Pressupostos amb els criteris informats

Specified by:
getPressupostsByCriteria in interface FacturaService
Returns:
PressupostSrvInDTO amb una llista amb Pressupostos
Throws:
CommonServiceException

getAllPressupost

public PressupostSrvOutDTO getAllPressupost()
                                     throws CommonServiceException
Description copied from interface: FacturaService
Carrega tots els Pressupostos

Specified by:
getAllPressupost in interface FacturaService
Returns:
PressupostSrvInDTO amb tots els pressupostos
Throws:
CommonServiceException

getEstat

public EstatSrvOutDTO getEstat(EstatSrvInDTO estatSrvInDTO)
                        throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Estats amb els criteris informats

Specified by:
getEstat in interface FacturaService
Returns:
EstatSrvInDTO amb un Estat
Throws:
CommonServiceException

getEstatsFactura

public EstatSrvOutDTO getEstatsFactura()
                                throws CommonServiceException
Description copied from interface: FacturaService
Carrega tots els Estats de Factura

Specified by:
getEstatsFactura in interface FacturaService
Returns:
EstatSrvInDTO amb tots els Estats de Factura
Throws:
CommonServiceException

getEstatsPressupost

public EstatSrvOutDTO getEstatsPressupost()
                                   throws CommonServiceException
Description copied from interface: FacturaService
Carrega tots els Estats de Pressupost

Specified by:
getEstatsPressupost in interface FacturaService
Returns:
EstatSrvInDTO amb tots els Estats de Pressupost
Throws:
CommonServiceException

getEstatsContracte

public EstatSrvOutDTO getEstatsContracte()
                                  throws CommonServiceException
Description copied from interface: FacturaService
Carrega tots els Estats de Contracte

Specified by:
getEstatsContracte in interface FacturaService
Returns:
EstatSrvInDTO amb tots els Estats de Contracte
Throws:
CommonServiceException

getEstatsIntervencio

public EstatSrvOutDTO getEstatsIntervencio()
                                    throws CommonServiceException
Description copied from interface: FacturaService
Carrega tots els Estats de Intervencio

Specified by:
getEstatsIntervencio in interface FacturaService
Returns:
EstatSrvInDTO amb tots els Estats de Intervencio
Throws:
CommonServiceException

getEstatsByPrefix

private EstatSrvOutDTO getEstatsByPrefix(String prefix)
                                  throws CommonServiceException
Cerca un llista de entitats Estat depenent del prefix. La llista resultant pot ser: estats de Factura, estats de Pressupost, estats de Contracte i estats de Intervencio.

Parameters:
prefix -
Returns:
resultat cerca
Throws:
CommonServiceException

nextNumeroFactura

public String nextNumeroFactura()
                         throws CommonServiceException
Description copied from interface: FacturaService
Crida el següent numero de Factura

Specified by:
nextNumeroFactura in interface FacturaService
Returns:
String amb el següent numero
Throws:
CommonServiceException

nextNumeroPressupost

public String nextNumeroPressupost()
                            throws CommonServiceException
Description copied from interface: FacturaService
Crida el següent numero de Pressupost

Specified by:
nextNumeroPressupost in interface FacturaService
Returns:
String amb el següent numero
Throws:
CommonServiceException

getConstants

public ConstantsSrvOutDTO getConstants(ConstantsSrvInDTO constantsSrvInDTO)
                                throws CommonServiceException
Description copied from interface: FacturaService
Busca sobre Constants amb els criteris informats

Specified by:
getConstants in interface FacturaService
Returns:
ConstantsSrvInDTO amb una Constant
Throws:
CommonServiceException

getFacturaDAO

public FacturaDAO getFacturaDAO()
Returns:
the facturaDAO

setFacturaDAO

public void setFacturaDAO(FacturaDAO facturaDAO)
Parameters:
facturaDAO - the facturaDAO to set

getPressupostDAO

public PressupostDAO getPressupostDAO()
Returns:
the pressupostDAO

setPressupostDAO

public void setPressupostDAO(PressupostDAO pressupostDAO)
Parameters:
pressupostDAO - the pressupostDAO to set

getEstatDAO

public EstatDAO getEstatDAO()
Returns:
the estatDAO

setEstatDAO

public void setEstatDAO(EstatDAO estatDAO)
Parameters:
estatDAO - the estatDAO to set

getContadorDAO

public ContadorDAO getContadorDAO()
Returns:
the contadorDAO

setContadorDAO

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

getConstantsDAO

public ConstantsDAO getConstantsDAO()
Returns:
the constantsDAO

setConstantsDAO

public void setConstantsDAO(ConstantsDAO constantsDAO)
Parameters:
constantsDAO - the constantsDAO to set