public class PropertiesServiceImpl extends java.lang.Object implements PropertiesService
| Constructor and Description |
|---|
PropertiesServiceImpl(<any> entityManagerProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.String key)
Returns true, if a property with the given key exists.
|
java.lang.String |
get(java.lang.String key)
Returns the property value or null.
|
java.util.List<Property> |
getAllProperties()
Returns all properties
|
Property |
getPropertyById(java.lang.Long id)
Retrieves a property by ID (note that the id is not the property's key)
|
Property |
getPropertyByKey(java.lang.String key)
Retrieves a property by key.
|
Property |
merge(Property property)
Merges a property
|
void |
persist(Property property)
Persists a property
|
void |
remove(Property property)
Removes a property
|
void |
removeByKey(java.lang.String key)
Removes a property by key.
|
Property |
setProperty(java.lang.String key,
java.lang.String value)
Updates the property with the given key, or creates a new one if none exists.
|
@QueryById public Property getPropertyById(java.lang.Long id)
PropertiesServicegetPropertyById in interface PropertiesServicePropertiesService.getPropertyByKey(String)@QueryByAttribute(where=<error>) public Property getPropertyByKey(java.lang.String key)
PropertiesServicegetPropertyByKey in interface PropertiesService@SimpleQuery public java.util.List<Property> getAllProperties()
PropertiesServicegetAllProperties in interface PropertiesServicepublic java.lang.String get(java.lang.String key)
PropertiesServiceget in interface PropertiesServicepublic void persist(Property property)
PropertiesServicepersist in interface PropertiesServicepublic Property merge(Property property)
PropertiesServicemerge in interface PropertiesServicepublic void remove(Property property)
PropertiesServiceremove in interface PropertiesServicepublic void removeByKey(java.lang.String key)
PropertiesServiceremoveByKey in interface PropertiesServicepublic boolean containsKey(java.lang.String key)
PropertiesServicecontainsKey in interface PropertiesServicepublic Property setProperty(java.lang.String key, java.lang.String value)
PropertiesServicesetProperty in interface PropertiesService