Package de.xima.fc.dao.impl
Class SystemPropertyDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<SystemProperty,
,Long, IEntityContext> IGenericDao<SystemProperty>
,ISystemPropertyDao
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProperty
(IEntityContext ec, String key, String value) void
deleteProperty
(IEntityContext ec, String key) boolean
getBooleanValue
(IEntityContext ec, String key, boolean defaultValue) getByKey
(IEntityContext ec, String key) getByKeyPrefix
(IEntityContext ec, String keyPrefix) getByKeys
(IEntityContext ec, List<String> keys) getStringValue
(IEntityContext ec, String key, String defaultValue) Returns the String value of the system property with the given key if it exists.updateProperty
(IEntityContext ec, String key, String value) Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, getPreActionHook, read
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
SystemPropertyDao
public SystemPropertyDao()
-
-
Method Details
-
getBooleanValue
- Specified by:
getBooleanValue
in interfaceISystemPropertyDao
-
getByKey
- Specified by:
getByKey
in interfaceISystemPropertyDao
-
getByKeys
- Specified by:
getByKeys
in interfaceISystemPropertyDao
-
getByKeyPrefix
- Specified by:
getByKeyPrefix
in interfaceISystemPropertyDao
-
getStringValue
Description copied from interface:ISystemPropertyDao
Returns the String value of the system property with the given key if it exists. If the system property does not exists the provided default value will be returned.- Specified by:
getStringValue
in interfaceISystemPropertyDao
- Parameters:
ec
- entity context for database transactions.key
- of the system property.defaultValue
- to return if no system property was found for the given key.- Returns:
- the String value of the system property with the given key if it exists and the provided default value otherwise.
-
createProperty
- Specified by:
createProperty
in interfaceISystemPropertyDao
-
updateProperty
- Specified by:
updateProperty
in interfaceISystemPropertyDao
-
deleteProperty
- Specified by:
deleteProperty
in interfaceISystemPropertyDao
-