org.itracker.persistence.dao
Class LanguageDAOImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.itracker.persistence.dao.BaseHibernateDAOImpl<Language>
              extended by org.itracker.persistence.dao.LanguageDAOImpl
All Implemented Interfaces:
BaseDAO<Language>, LanguageDAO, org.springframework.beans.factory.InitializingBean

public class LanguageDAOImpl
extends BaseHibernateDAOImpl<Language>
implements LanguageDAO


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LanguageDAOImpl()
           
 
Method Summary
 Language findById(Integer id)
           
 List<Language> findByKey(String key)
          Finds all language items with a particular key.
 Language findByKeyAndLocale(String key, String locale)
          Finds all language items with the given key and locale.
 List<Language> findByLocale(String locale)
          Finds all language items with a given locale.
 
Methods inherited from class org.itracker.persistence.dao.BaseHibernateDAOImpl
delete, detach, merge, refresh, save, saveOrUpdate
 
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 org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Constructor Detail

LanguageDAOImpl

public LanguageDAOImpl()
Method Detail

findById

public Language findById(Integer id)
Specified by:
findById in interface LanguageDAO

findByKeyAndLocale

public Language findByKeyAndLocale(String key,
                                   String locale)
Description copied from interface: LanguageDAO
Finds all language items with the given key and locale.

Specified by:
findByKeyAndLocale in interface LanguageDAO
Parameters:
key - resource key
Returns:
language items for the given locale

findByKey

public List<Language> findByKey(String key)
Description copied from interface: LanguageDAO
Finds all language items with a particular key.

Specified by:
findByKey in interface LanguageDAO
Parameters:
key - resource key
Returns:
language items with the given key for all available locales

findByLocale

public List<Language> findByLocale(String locale)
Description copied from interface: LanguageDAO
Finds all language items with a given locale.

Specified by:
findByLocale in interface LanguageDAO
Returns:
language items for the given locale


Copyright © 2002-2012 itracker. All Rights Reserved.