@Repository(value="blSystemPropertiesDao") public class SystemPropertiesDaoImpl extends AbstractCacheMissAware<SystemProperty> implements SystemPropertiesDao
Type | Property and Description |
---|---|
SystemProperty |
createNewSystem |
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
protected static org.apache.commons.logging.Log |
LOG |
protected SystemPropertyDaoQueryExtensionManager |
queryExtensionManager |
cacheManager, statisticsService
Constructor and Description |
---|
SystemPropertiesDaoImpl() |
Modifier and Type | Method and Description |
---|---|
SystemProperty |
createNewSystemProperty() |
void |
deleteSystemProperty(SystemProperty systemProperty) |
protected org.apache.commons.logging.Log |
getLogger()
To provide more accurate logging, this abstract cache should utilize a logger from its child
implementation.
|
protected SystemProperty |
getNullObject(Class<SystemProperty> responseClass)
Retrieve a null representation of the cache item.
|
protected String |
getSite() |
List<SystemProperty> |
readAllSystemProperties() |
SystemProperty |
readById(Long id)
Reads a SystemProperty by its internal database id
|
SystemProperty |
readSystemPropertyByName(String name) |
void |
removeFromCache(SystemProperty systemProperty)
Removes the SystemProperty from the null-capable cache.
|
SystemProperty |
saveSystemProperty(SystemProperty systemProperty) |
buildKey, clearCache, getCache, getCachedObject, getObjectFromCache, removeItemFromCache
public SystemProperty createNewSystemProperty
createNewSystemProperty
in interface SystemPropertiesDao
protected static final org.apache.commons.logging.Log LOG
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected SystemPropertyDaoQueryExtensionManager queryExtensionManager
public SystemProperty readById(Long id)
SystemPropertiesDao
readById
in interface SystemPropertiesDao
SystemProperty
public SystemProperty saveSystemProperty(SystemProperty systemProperty)
saveSystemProperty
in interface SystemPropertiesDao
public void deleteSystemProperty(SystemProperty systemProperty)
deleteSystemProperty
in interface SystemPropertiesDao
public List<SystemProperty> readAllSystemProperties()
readAllSystemProperties
in interface SystemPropertiesDao
public SystemProperty readSystemPropertyByName(String name)
readSystemPropertyByName
in interface SystemPropertiesDao
public void removeFromCache(SystemProperty systemProperty)
SystemPropertiesDao
removeFromCache
in interface SystemPropertiesDao
systemProperty
- the property instancepublic SystemProperty createNewSystemProperty()
createNewSystemProperty
in interface SystemPropertiesDao
protected org.apache.commons.logging.Log getLogger()
AbstractCacheMissAware
getLogger
in class AbstractCacheMissAware<SystemProperty>
Log
instance from the subclass of this abstract classprotected String getSite()
protected SystemProperty getNullObject(Class<SystemProperty> responseClass)
AbstractCacheMissAware
getNullObject
in class AbstractCacheMissAware<SystemProperty>
responseClass
- the class representing the type of the cache itemCopyright © 2022. All rights reserved.