Package de.xima.fc.dao.interfaces
Interface ISystemPropertyDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<SystemProperty,Long,IEntityContext>
,IGenericDao<SystemProperty>
- All Known Implementing Classes:
SystemPropertyDao
public interface ISystemPropertyDao extends IGenericDao<SystemProperty>
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemProperty
createProperty(IEntityContext ec, String key, String value)
void
deleteProperty(IEntityContext ec, String key)
boolean
getBooleanValue(IEntityContext ec, String key, boolean defaultValue)
SystemProperty
getByKey(IEntityContext ec, String key)
List<SystemProperty>
getByKeyPrefix(IEntityContext ec, String keyPrefix)
List<SystemProperty>
getByKeys(IEntityContext ec, List<String> keys)
String
getStringValue(IEntityContext ec, String key, String defaultValue)
Returns the String value of the system property with the given key if it exists.SystemProperty
updateProperty(IEntityContext ec, String key, String value)
-
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
-
-
-
-
Method Detail
-
getBooleanValue
boolean getBooleanValue(IEntityContext ec, String key, boolean defaultValue)
-
getByKey
SystemProperty getByKey(IEntityContext ec, String key)
-
getByKeys
List<SystemProperty> getByKeys(IEntityContext ec, List<String> keys)
-
getByKeyPrefix
List<SystemProperty> getByKeyPrefix(IEntityContext ec, String keyPrefix)
-
getStringValue
String getStringValue(IEntityContext ec, String key, String defaultValue)
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.- 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
SystemProperty createProperty(IEntityContext ec, String key, String value)
-
updateProperty
SystemProperty updateProperty(IEntityContext ec, String key, String value)
-
deleteProperty
void deleteProperty(IEntityContext ec, String key)
-
-