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 Date
protected Long
protected jakarta.persistence.EntityManager
protected EntityConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(ModuleConfiguration config) protected Date
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.readByType
(Class<? extends ModuleConfiguration> type) save
(ModuleConfiguration config) void
setCurrentDateResolution
(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:
readById
in interfaceModuleConfigurationDao
-
save
- Specified by:
save
in interfaceModuleConfigurationDao
-
delete
- Specified by:
delete
in interfaceModuleConfigurationDao
-
readAllByType
- Specified by:
readAllByType
in interfaceModuleConfigurationDao
-
readActiveByType
- Specified by:
readActiveByType
in interfaceModuleConfigurationDao
-
readByType
- Specified by:
readByType
in interfaceModuleConfigurationDao
-
getCurrentDateResolution
Description copied from interface:ModuleConfigurationDao
Returns 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:
getCurrentDateResolution
in interfaceModuleConfigurationDao
- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Description copied from interface:ModuleConfigurationDao
Sets 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:
setCurrentDateResolution
in interfaceModuleConfigurationDao
- Parameters:
currentDateResolution
- the milliseconds to cache the current date/time
-