package org.renyan.kv;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: weirenan
 * Date: 14-5-16
 * Time: 下午9:17
 */
public interface SDB {

    public <T> boolean put(String key, String group, T body);

    public <T> T get(String key, String group, Class<T> clazz);

    public <T> List<T> list(String group, Class<T> clazz);

    public boolean delete(String key, String group);

    public void close();
}

@@ -52,35 +52,57 @@
 %0A * 
-Created with IntelliJ IDEA.
+Simple key value db%0A * %3Cp/%3E%0A * key by group store
 %0A * 
@@ -185,191 +185,843 @@
     
-public %3CT%3E boolean put(String key, String group, T body);%0A%0A    public %3CT%3E T get(String key, String group, Class%3CT%3E clazz);%0A%0A    public %3CT%3E List%3CT%3E list(String group, Class%3CT%3E clazz);%0A
+/**%0A     * save  key value%0A     *%0A     * @param key   key%0A     * @param group key is group%0A     * @param body  value%0A     * @param %3CT%3E   value Type%0A     * @return%0A     */%0A    public %3CT%3E boolean put(String key, String group, T body);%0A%0A    /**%0A     * give key and group return this value%0A     *%0A     * @param key   key%0A     * @param group key is group%0A     * @param clazz value is class type%0A     * @param %3CT%3E%0A     * @return return value%0A     */%0A    public %3CT%3E T get(String key, String group, Class%3CT%3E clazz);%0A%0A    /**%0A     * query give group all key's values%0A     *%0A     * @param group group%0A     * @param clazz type%0A     * @param %3CT%3E%0A     * @return%0A     */%0A    public %3CT%3E List%3CT%3E list(String group, Class%3CT%3E clazz);%0A%0A    /**%0A     * delete give key's value%0A     *%0A     * @param key   key%0A     * @param group group%0A     * @return%0A     */
 %0A   
@@ -1067,24 +1067,69 @@
 ng group);%0A%0A
+    /**%0A     * close db release lock%0A     */%0A
     public v

add comments