com.gisgraphy.domain.repository
Class AlternateNameDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.gisgraphy.domain.repository.GenericDao<AlternateName,java.lang.Long>
              extended by com.gisgraphy.domain.repository.AlternateNameDao
All Implemented Interfaces:
IAlternateNameDao, IDao<AlternateName,java.lang.Long>, org.springframework.beans.factory.InitializingBean

@Repository
public class AlternateNameDao
extends GenericDao<AlternateName,java.lang.Long>
implements IAlternateNameDao

A data access object for AlternateName

Author:
David Masclet

Field Summary
 
Fields inherited from class com.gisgraphy.domain.repository.GenericDao
persistentClass
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AlternateNameDao()
          Default constructor
 
Method Summary
 java.util.List<java.lang.String> getUsedLanguagesCodes()
          This method returns the language used by the AlternateName. the results are sorted by the number of times they are used(most popula first)
 
Methods inherited from class com.gisgraphy.domain.repository.GenericDao
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode
 
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.gisgraphy.domain.repository.IDao
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode
 

Constructor Detail

AlternateNameDao

public AlternateNameDao()
Default constructor

Method Detail

getUsedLanguagesCodes

public java.util.List<java.lang.String> getUsedLanguagesCodes()
Description copied from interface: IAlternateNameDao
This method returns the language used by the AlternateName. the results are sorted by the number of times they are used(most popula first)

Specified by:
getUsedLanguagesCodes in interface IAlternateNameDao
Returns:
a list of languages that are used by the alternate names or an empty list (never return null).


Copyright © 2010. All Rights Reserved.