@Repository(value="blModuleConfigurationDao") public class ModuleConfigurationDaoImpl extends java.lang.Object implements ModuleConfigurationDao
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Date |
currentDate |
protected java.lang.Long |
currentDateResolution |
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
ModuleConfigurationDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(ModuleConfiguration config) |
java.lang.Long |
getCurrentDateResolution()
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
protected java.util.Date |
getDateFactoringInDateResolution(java.util.Date currentDate) |
java.util.List<ModuleConfiguration> |
readActiveByType(ModuleConfigurationType type) |
java.util.List<ModuleConfiguration> |
readAllByType(ModuleConfigurationType type) |
ModuleConfiguration |
readById(java.lang.Long id) |
java.util.List<ModuleConfiguration> |
readByType(java.lang.Class<? extends ModuleConfiguration> type) |
ModuleConfiguration |
save(ModuleConfiguration config) |
void |
setCurrentDateResolution(java.lang.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 java.lang.Long currentDateResolution
protected java.util.Date currentDate
protected java.util.Date getDateFactoringInDateResolution(java.util.Date currentDate)
public ModuleConfiguration readById(java.lang.Long id)
readById in interface ModuleConfigurationDaopublic ModuleConfiguration save(ModuleConfiguration config)
save in interface ModuleConfigurationDaopublic void delete(ModuleConfiguration config)
delete in interface ModuleConfigurationDaopublic java.util.List<ModuleConfiguration> readAllByType(ModuleConfigurationType type)
readAllByType in interface ModuleConfigurationDaopublic java.util.List<ModuleConfiguration> readActiveByType(ModuleConfigurationType type)
readActiveByType in interface ModuleConfigurationDaopublic java.util.List<ModuleConfiguration> readByType(java.lang.Class<? extends ModuleConfiguration> type)
readByType in interface ModuleConfigurationDaopublic java.lang.Long getCurrentDateResolution()
ModuleConfigurationDaogetCurrentDateResolution in interface ModuleConfigurationDaopublic void setCurrentDateResolution(java.lang.Long currentDateResolution)
ModuleConfigurationDaosetCurrentDateResolution in interface ModuleConfigurationDaocurrentDateResolution - the milliseconds to cache the current date/timeCopyright © 2018. All Rights Reserved.