Class DefaultSmarteditConfigurationDao
- java.lang.Object
-
- de.hybris.platform.smarteditwebservices.configuration.dao.impl.DefaultSmarteditConfigurationDao
-
- All Implemented Interfaces:
SmarteditConfigurationDao
public class DefaultSmarteditConfigurationDao extends java.lang.Object implements SmarteditConfigurationDao
Default implementation of the SmartEdit Configuration DAO, responsible for the persistence ofSmarteditConfigurationModel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSELECT_ALL_CONFIGURATIONSstatic java.lang.StringSELECT_CONFIGURATION_BY_KEY
-
Constructor Summary
Constructors Constructor Description DefaultSmarteditConfigurationDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmarteditConfigurationModelfindByKey(java.lang.String key)Finds aSmarteditConfigurationModelby its key value.protected FlexibleSearchServicegetFlexibleSearchService()java.util.List<SmarteditConfigurationModel>loadAll()Loads all configurations persistedvoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-
-
Method Detail
-
loadAll
public java.util.List<SmarteditConfigurationModel> loadAll()
Description copied from interface:SmarteditConfigurationDaoLoads all configurations persisted- Specified by:
loadAllin interfaceSmarteditConfigurationDao- Returns:
- a list of
SmarteditConfigurationModel
-
findByKey
public SmarteditConfigurationModel findByKey(java.lang.String key)
Description copied from interface:SmarteditConfigurationDaoFinds aSmarteditConfigurationModelby its key value.- Specified by:
findByKeyin interfaceSmarteditConfigurationDao- Parameters:
key- the configuration key- Returns:
- a
SmarteditConfigurationModelinstance, or null if it does not exist in the database
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-