org.itracker.persistence.dao
Interface LanguageDAO

All Superinterfaces:
BaseDAO<Language>
All Known Implementing Classes:
LanguageDAOImpl

public interface LanguageDAO
extends BaseDAO<Language>


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 interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findById

Language findById(Integer id)

findByKeyAndLocale

Language findByKeyAndLocale(String key,
                            String locale)
Finds all language items with the given key and locale.

Parameters:
key - resource key
locale -
Returns:
language items for the given locale

findByKey

List<Language> findByKey(String key)
Finds all language items with a particular key.

Parameters:
key - resource key
Returns:
language items with the given key for all available locales

findByLocale

List<Language> findByLocale(String locale)
Finds all language items with a given locale.

Parameters:
locale -
Returns:
language items for the given locale


Copyright © 2002-2012 itracker. All Rights Reserved.