@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 ModuleConfigurationDao
public ModuleConfiguration save(ModuleConfiguration config)
save
in interface ModuleConfigurationDao
public void delete(ModuleConfiguration config)
delete
in interface ModuleConfigurationDao
public List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)
readAllByType
in interface ModuleConfigurationDao
public List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)
readActiveByType
in interface ModuleConfigurationDao
public List<ModuleConfiguration> readByType(Class<? extends ModuleConfiguration> type)
readByType
in interface ModuleConfigurationDao
public Long getCurrentDateResolution()
ModuleConfigurationDao
getCurrentDateResolution
in interface ModuleConfigurationDao
public void setCurrentDateResolution(Long currentDateResolution)
ModuleConfigurationDao
setCurrentDateResolution
in interface ModuleConfigurationDao
currentDateResolution
- the milliseconds to cache the current date/timeCopyright © 2022. All rights reserved.