aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java')
-rw-r--r--id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java b/id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java
index bfc3bc6cd..8f00bd226 100644
--- a/id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java
+++ b/id/server/moa-id-commons/src/main/java/com/datentechnik/moa/id/conf/persistence/dal/ConfigPropertyDao.java
@@ -10,31 +10,30 @@ import java.util.Set;
public interface ConfigPropertyDao {
/**
+ * Gets all keys in the database.
+ * @return a List containing all keys in the database.
+ */
+ List<String> getAllKeys();
+
+ /**
* Returns the {@link ConfigProperty} associated with {@code key} or {@code null} if the entry does not exist.
*
* @param key The configuration key.
* @return The configuration property value or {@code null}.
*/
- public ConfigProperty getProperty(String key);
-
- /**
- * Persists a given {@link ConfigProperty}.
- * @param property The property to be persisted.
- */
- public void saveProperty(ConfigProperty property);
+ ConfigProperty getProperty(String key);
/**
* Persists a given {@link ConfigProperty}.
* @param property The property to be persisted.
- * @param overwrite determines the data should be inserted, even if data is already present (insert or update).
*/
- public void saveProperty(ConfigProperty property, boolean overwrite);
+ void saveProperty(ConfigProperty property);
/**
* Returns a {@link List} containing all stored {@linkplain ConfigProperty ConfigProperties}.
* @return The list with the properties.
*/
- public List<ConfigProperty> getProperties();
+ List<ConfigProperty> getProperties();
/**
* Returns the value for the configuration property associated with {@code key} or {@code null} if the entry does not exist or its value is {@code null}.
@@ -42,18 +41,18 @@ public interface ConfigPropertyDao {
* @param key The configuration key.
* @return The configuration property value or {@code null}.
*/
- public String getPropertyValue(String key);
+ String getPropertyValue(String key);
/**
* Persists a {@link List} of {@linkplain ConfigProperty ConfigProperties}.
* @param properties The list containing all the properties to be persisted.
*/
- public void saveProperties(Set<ConfigProperty> properties);
+ void saveProperties(Set<ConfigProperty> properties);
/**
* Deletes the object associated with the given key.
* @param key the key
*/
- public void delete(String key);
+ void delete(String key);
}