Move config-parent to aggregator POM
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / interfaces / dao / ILispDAO.java
index 8d856f9c0c9b1cb78d0856cc2a4071b67f828361..1bc7d1541d23fd7f466385a5e4d02d046ba7a717 100644 (file)
@@ -9,13 +9,12 @@
 package org.opendaylight.lispflowmapping.interfaces.dao;
 
 import java.util.Map;
-import java.util.concurrent.TimeUnit;
 
-public interface ILispDAO extends IQueryAll {
+public interface ILispDAO {
 
     /**
      * Put a entry into the DAO.
-     * 
+     *
      * @param key
      *            The entry's key.
      * @param values
@@ -25,7 +24,7 @@ public interface ILispDAO extends IQueryAll {
 
     /**
      * Get a specific value from the DAO.
-     * 
+     *
      * @param key
      *            The key of the value to fetch
      * @param valueKey
@@ -36,48 +35,42 @@ public interface ILispDAO extends IQueryAll {
 
     /**
      * Get the entries from the DAO
-     * 
+     *
      * @param key
      *            The key.
      * @return The value from the DAO.
      */
-    public <K> Map<String, Object> get(K key);
+    public Map<String, Object> get(Object key);
+
+    /**
+     * Enumerate all the entries from the DAO
+     *
+     * @param visitor
+     *            The visitor object.
+     */
+    public void getAll(IRowVisitor visitor);
 
     /**
      * Remove an entry from the DAO
-     * 
+     *
      * @param key
-     *            The key of the entry
-     * @return true if success, false otherwise
+     *            The key of the entry to delete
      */
-    public boolean remove(Object key);
+    public void remove(Object key);
 
     /**
      * Remove an entry from the DAO
-     * 
+     *
      * @param key
      *            The key of the entry
      * @param valueKey
      *            The value to delete
-     * @return true if success, false otherwise
      */
-    public boolean removeSpecific(Object key, String valueKey);
+    public void removeSpecific(Object key, String valueKey);
 
     /**
      * Clear the DAO and remove all of the entries.
      */
-    public void clearAll();
-
-    /**
-     * @return The time unit of the DAO cleaner
-     */
-    public TimeUnit getTimeUnit();
-
-    /**
-     * Set the time unit of the DAO cleaner
-     * 
-     * @param timeUnit
-     */
-    public void setTimeUnit(TimeUnit timeUnit);
+    public void removeAll();
 
 }