org.broadleafcommerce.profile.core.dao
Class StateDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.StateDaoImpl
All Implemented Interfaces:
StateDao

@Repository(value="blStateDao")
public class StateDaoImpl
extends java.lang.Object
implements StateDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
protected  java.lang.String queryCacheableKey
           
 
Constructor Summary
StateDaoImpl()
           
 
Method Summary
 State create()
           
 java.util.List<Country> findCountries()
           
 Country findCountryByShortName(java.lang.String shortName)
           
 State findStateByAbbreviation(java.lang.String abbreviation)
           
 java.util.List<State> findStates()
           
 java.util.List<State> findStates(java.lang.String countryAbbreviation)
           
 java.lang.String getQueryCacheableKey()
           
 State save(State state)
           
 void setQueryCacheableKey(java.lang.String queryCacheableKey)
           
 
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

queryCacheableKey

protected java.lang.String queryCacheableKey
Constructor Detail

StateDaoImpl

public StateDaoImpl()
Method Detail

findStateByAbbreviation

public State findStateByAbbreviation(java.lang.String abbreviation)
Specified by:
findStateByAbbreviation in interface StateDao

findStates

public java.util.List<State> findStates()
Specified by:
findStates in interface StateDao

findStates

public java.util.List<State> findStates(java.lang.String countryAbbreviation)
Specified by:
findStates in interface StateDao

findCountryByShortName

public Country findCountryByShortName(java.lang.String shortName)

findCountries

public java.util.List<Country> findCountries()

getQueryCacheableKey

public java.lang.String getQueryCacheableKey()

setQueryCacheableKey

public void setQueryCacheableKey(java.lang.String queryCacheableKey)

create

public State create()
Specified by:
create in interface StateDao

save

public State save(State state)
Specified by:
save in interface StateDao


Copyright © 2011. All Rights Reserved.