@Repository(value="blModuleConfigurationDao") public class ModuleConfigurationDaoImpl extends Object implements ModuleConfigurationDao
| Modifier and Type | Field and Description |
|---|---|
protected Date |
cachedDate |
protected Long |
currentDateResolution |
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
ModuleConfigurationDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(ModuleConfiguration config) |
protected Date |
getCurrentDateAfterFactoringInDateResolution() |
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.
|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected Long currentDateResolution
protected Date cachedDate
protected Date getCurrentDateAfterFactoringInDateResolution()
public ModuleConfiguration readById(Long id)
readById in interface ModuleConfigurationDaopublic ModuleConfiguration save(ModuleConfiguration config)
save in interface ModuleConfigurationDaopublic void delete(ModuleConfiguration config)
delete in interface ModuleConfigurationDaopublic List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)
readAllByType in interface ModuleConfigurationDaopublic List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)
readActiveByType in interface ModuleConfigurationDaopublic List<ModuleConfiguration> readByType(Class<? extends ModuleConfiguration> type)
readByType in interface ModuleConfigurationDaopublic Long getCurrentDateResolution()
ModuleConfigurationDaogetCurrentDateResolution in interface ModuleConfigurationDaopublic void setCurrentDateResolution(Long currentDateResolution)
ModuleConfigurationDaosetCurrentDateResolution in interface ModuleConfigurationDaocurrentDateResolution - the milliseconds to cache the current date/timeCopyright © 2017. All rights reserved.