Class PropertiesServiceImpl
java.lang.Object
net.datenwerke.gf.service.properties.PropertiesServiceImpl
- All Implemented Interfaces:
PropertiesService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returns true, if a property with the given key exists.Returns the property value or null.Returns all propertiesgetPropertyById(Long id) Retrieves a property by ID (note that the id is not the property's key)getPropertyByKey(String key) Retrieves a property by key.Merges a propertyvoidPersists a propertyvoidRemoves a propertyvoidremoveByKey(String key) Removes a property by key.setProperty(String key, String value) Updates the property with the given key, or creates a new one if none exists.
-
Constructor Details
-
PropertiesServiceImpl
public PropertiesServiceImpl(<any> entityManagerProvider)
-
-
Method Details
-
getPropertyById
Description copied from interface:PropertiesServiceRetrieves a property by ID (note that the id is not the property's key)- Specified by:
getPropertyByIdin interfacePropertiesService- Parameters:
id-- See Also:
-
getPropertyByKey
Description copied from interface:PropertiesServiceRetrieves a property by key.- Specified by:
getPropertyByKeyin interfacePropertiesService- Parameters:
key-
-
getAllProperties
Description copied from interface:PropertiesServiceReturns all properties- Specified by:
getAllPropertiesin interfacePropertiesService
-
get
Description copied from interface:PropertiesServiceReturns the property value or null.- Specified by:
getin interfacePropertiesService- Parameters:
key-
-
persist
Description copied from interface:PropertiesServicePersists a property- Specified by:
persistin interfacePropertiesService- Parameters:
property-
-
merge
Description copied from interface:PropertiesServiceMerges a property- Specified by:
mergein interfacePropertiesService- Parameters:
property-
-
remove
Description copied from interface:PropertiesServiceRemoves a property- Specified by:
removein interfacePropertiesService- Parameters:
property-
-
removeByKey
Description copied from interface:PropertiesServiceRemoves a property by key.- Specified by:
removeByKeyin interfacePropertiesService- Parameters:
key-
-
containsKey
Description copied from interface:PropertiesServiceReturns true, if a property with the given key exists.- Specified by:
containsKeyin interfacePropertiesService- Parameters:
key-
-
setProperty
Description copied from interface:PropertiesServiceUpdates the property with the given key, or creates a new one if none exists.- Specified by:
setPropertyin interfacePropertiesService- Parameters:
key-value-
-