org.broadleafcommerce.common.locale.dao
Class LocaleDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.common.locale.dao.LocaleDaoImpl
All Implemented Interfaces:
LocaleDao

@Repository(value="blLocaleDao")
public class LocaleDaoImpl
extends Object
implements LocaleDao

Created by bpolster.


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
LocaleDaoImpl()
           
 
Method Summary
 List<Locale> findAllLocales()
          Returns all supported BLC locales.
 Locale findDefaultLocale()
          Returns the page template with the passed in id.
 Locale findLocaleByCode(String localeCode)
           
 Locale save(Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

LocaleDaoImpl

public LocaleDaoImpl()
Method Detail

findLocaleByCode

public Locale findLocaleByCode(String localeCode)
Specified by:
findLocaleByCode in interface LocaleDao
Returns:
The locale for the passed in code

findDefaultLocale

public Locale findDefaultLocale()
Returns the page template with the passed in id.

Specified by:
findDefaultLocale in interface LocaleDao
Returns:
The default locale

findAllLocales

public List<Locale> findAllLocales()
Returns all supported BLC locales.

Specified by:
findAllLocales in interface LocaleDao
Returns:

save

public Locale save(Locale locale)
Specified by:
save in interface LocaleDao


Copyright © 2012. All Rights Reserved.