Class ModuleConfigurationDaoImpl
java.lang.Object
org.broadleafcommerce.common.config.dao.ModuleConfigurationDaoImpl
- All Implemented Interfaces:
ModuleConfigurationDao
@Repository("blModuleConfigurationDao")
public class ModuleConfigurationDaoImpl
extends Object
implements ModuleConfigurationDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Longprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(ModuleConfiguration config) protected DateReturns the number of milliseconds that the current date/time will be cached for queries before refreshing.readByType(Class<? extends ModuleConfiguration> type) save(ModuleConfiguration config) voidsetCurrentDateResolution(Long currentDateResolution) Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
currentDateResolution
-
cachedDate
-
-
Constructor Details
-
ModuleConfigurationDaoImpl
public ModuleConfigurationDaoImpl()
-
-
Method Details
-
getCurrentDateAfterFactoringInDateResolution
-
readById
- Specified by:
readByIdin interfaceModuleConfigurationDao
-
save
- Specified by:
savein interfaceModuleConfigurationDao
-
delete
- Specified by:
deletein interfaceModuleConfigurationDao
-
readAllByType
- Specified by:
readAllByTypein interfaceModuleConfigurationDao
-
readActiveByType
- Specified by:
readActiveByTypein interfaceModuleConfigurationDao
-
readByType
- Specified by:
readByTypein interfaceModuleConfigurationDao
-
getCurrentDateResolution
Description copied from interface:ModuleConfigurationDaoReturns the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
getCurrentDateResolutionin interfaceModuleConfigurationDao- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Description copied from interface:ModuleConfigurationDaoSets the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
setCurrentDateResolutionin interfaceModuleConfigurationDao- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-