com.ferri.persistence.dao.impl
Class ContadorDAOImpl

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<ContadorVO,Object[]>
              extended by com.ferri.persistence.dao.base.BaseContadorDAO
                  extended by com.ferri.persistence.dao.impl.ContadorDAOImpl
All Implemented Interfaces:
Initializable, GenericBaseDAO<ContadorVO,Object[]>, ContadorDAO, org.springframework.beans.factory.InitializingBean

public class ContadorDAOImpl
extends BaseContadorDAO

Implementació DAO de la instancia Contador

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
ContadorDAOImpl()
           
 
Method Summary
 String nextNumero(String tipus)
          Metode que retorna el seguent número de la taula tfc_contador amb autoincrement crivat per any i tipus(factura, pressupost i contracte).
 String nextNumeroContracte()
          Recupera el següent numero de contracte tenint en compte l'any actual.
 String nextNumeroFactura()
          Recupera el següent numero de factura tenint en compte l'any actual.
 String nextNumeroPressupost()
          Recupera el següent numero de pressupost tenint en compte l'any actual.
 
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

ContadorDAOImpl

public ContadorDAOImpl()
Method Detail

nextNumero

public String nextNumero(String tipus)
Metode que retorna el seguent número de la taula tfc_contador amb autoincrement crivat per any i tipus(factura, pressupost i contracte). S'ha fet així ja que no es pot configurar el mapeig hibernate per una clau composta amb una de les columnes amb autoincrement.

Parameters:
tipus -
Returns:
String següent número

nextNumeroFactura

public String nextNumeroFactura()
Description copied from interface: ContadorDAO
Recupera el següent numero de factura tenint en compte l'any actual.

Returns:
String següent número

nextNumeroContracte

public String nextNumeroContracte()
Description copied from interface: ContadorDAO
Recupera el següent numero de contracte tenint en compte l'any actual.

Returns:
String següent número

nextNumeroPressupost

public String nextNumeroPressupost()
Description copied from interface: ContadorDAO
Recupera el següent numero de pressupost tenint en compte l'any actual.

Returns:
String següent número