com.ferri.persistence.dao.impl
Class ClientDAOImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.ferri.persistence.dao.commons.GenericBaseDAOImpl<ClientVO,String>
              extended by com.ferri.persistence.dao.base.BaseClientDAO
                  extended by com.ferri.persistence.dao.impl.ClientDAOImpl
All Implemented Interfaces:
Initializable, GenericBaseDAO<ClientVO,String>, ClientDAO, org.springframework.beans.factory.InitializingBean

public class ClientDAOImpl
extends BaseClientDAO

Implementació DAO de la instancia Client

Author:
dferri

Field Summary
 
Fields inherited from class com.ferri.persistence.dao.commons.GenericBaseDAOImpl
logger
 
Fields inherited from interface com.ferri.persistence.dao.commons.GenericBaseDAO
ORDER_BY, SEPARATOR_COMMA, SEPARATOR_DOT
 
Constructor Summary
ClientDAOImpl()
           
 
Method Summary
 Integer getSemaforEstatFactures(String nifClient)
          Metode que calcúla l'estat de les factures d'un client.
 Integer getSemaforEstatIntervencions(String nifClient)
          Metode que calcúla l'estat de les intervencions d'un client.
 
Methods inherited from class com.ferri.persistence.dao.commons.GenericBaseDAOImpl
create, create, find, findByCriteria, findByExample, getCriteria, getEntityClass, getEntityClassName, getQueryOrderedBy, headEntityClassNameTo, initialize, load, loadAll, loadAllOrderBy, loadAllOrderby, remove, remove, removeByPk, save, saveOrUpdate, saveOrUpdate, update
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ferri.persistence.dao.commons.GenericBaseDAO
create, create, find, findByCriteria, findByExample, getCriteria, getQueryOrderedBy, load, loadAll, loadAllOrderBy, loadAllOrderby, remove, remove, removeByPk, save, saveOrUpdate, saveOrUpdate, update
 
Methods inherited from interface com.ferri.core.behaviors.Initializable
initialize
 

Constructor Detail

ClientDAOImpl

public ClientDAOImpl()
Method Detail

getSemaforEstatFactures

public Integer getSemaforEstatFactures(String nifClient)
Description copied from interface: ClientDAO
Metode que calcúla l'estat de les factures d'un client. Retorna verd si totes están pagades, ambar si en queden pendents, vermell si n'hi han pendents amb data antiga.

Returns:
Integer amb el valor de constant del color

getSemaforEstatIntervencions

public Integer getSemaforEstatIntervencions(String nifClient)
Description copied from interface: ClientDAO
Metode que calcúla l'estat de les intervencions d'un client. Retorna verd si totes están finalitzades, ambar si en queden pendents, vermell si n'hi han a punt de vencer en data.

Returns:
Integer amb el valor de constant del color