org.broadleafcommerce.common.config.dao
Class ModuleConfigurationDaoImpl
java.lang.Object
org.broadleafcommerce.common.config.dao.ModuleConfigurationDaoImpl
- All Implemented Interfaces:
- ModuleConfigurationDao
@Repository(value="blModuleConfigurationDao")
public class ModuleConfigurationDaoImpl
- extends Object
- implements ModuleConfigurationDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
em
protected javax.persistence.EntityManager em
entityConfiguration
protected EntityConfiguration entityConfiguration
currentDateResolution
protected Long currentDateResolution
currentDate
protected Date currentDate
ModuleConfigurationDaoImpl
public ModuleConfigurationDaoImpl()
getDateFactoringInDateResolution
protected Date getDateFactoringInDateResolution(Date currentDate)
readById
public ModuleConfiguration readById(Long id)
- Specified by:
readById in interface ModuleConfigurationDao
save
public ModuleConfiguration save(ModuleConfiguration config)
- Specified by:
save in interface ModuleConfigurationDao
delete
public void delete(ModuleConfiguration config)
- Specified by:
delete in interface ModuleConfigurationDao
readAllByType
public List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)
- Specified by:
readAllByType in interface ModuleConfigurationDao
readActiveByType
public List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)
- Specified by:
readActiveByType in interface ModuleConfigurationDao
readByType
public List<ModuleConfiguration> readByType(Class<? extends ModuleConfiguration> type)
- Specified by:
readByType in interface ModuleConfigurationDao
getCurrentDateResolution
public Long 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 interface ModuleConfigurationDao
- Returns:
- the milliseconds to cache the current date/time
setCurrentDateResolution
public void setCurrentDateResolution(Long currentDateResolution)
- 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 interface ModuleConfigurationDao
- Parameters:
currentDateResolution - the milliseconds to cache the current date/time
Copyright © 2013. All Rights Reserved.