public interface PropertiesService
| 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 name)
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.
|
Property getPropertyById(java.lang.Long id)
id - getPropertyByKey(String)Property getPropertyByKey(java.lang.String name)
name - boolean containsKey(java.lang.String key)
key - void removeByKey(java.lang.String key)
key - Property setProperty(java.lang.String key, java.lang.String value)
key - value - java.lang.String get(java.lang.String key)
key - void persist(Property property)
property - void remove(Property property)
property - java.util.List<Property> getAllProperties()