org.broadleafcommerce.common.config.dao
Interface ModuleConfigurationDao

All Known Implementing Classes:
ModuleConfigurationDaoImpl

public interface ModuleConfigurationDao


Method Summary
 void delete(ModuleConfiguration config)
           
 Long getCurrentDateResolution()
          Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
 List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)
           
 List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)
           
 ModuleConfiguration readById(Long id)
           
 List<ModuleConfiguration> readByType(Class<? extends ModuleConfiguration> type)
           
 ModuleConfiguration save(ModuleConfiguration config)
           
 void setCurrentDateResolution(Long currentDateResolution)
          Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
 

Method Detail

readById

ModuleConfiguration readById(Long id)

save

ModuleConfiguration save(ModuleConfiguration config)

delete

void delete(ModuleConfiguration config)

readAllByType

List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)

readActiveByType

List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)

readByType

List<ModuleConfiguration> readByType(Class<? extends ModuleConfiguration> type)

getCurrentDateResolution

Long getCurrentDateResolution()
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.

Returns:
the milliseconds to cache the current date/time

setCurrentDateResolution

void setCurrentDateResolution(Long currentDateResolution)
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.

Parameters:
currentDateResolution - the milliseconds to cache the current date/time


Copyright © 2013. All Rights Reserved.