1 18 19 package sync4j.framework.server.store; 20 21 import java.util.Map ; 22 23 import sync4j.framework.server.store.Clause; 24 import sync4j.framework.server.store.ConfigPersistentStoreException; 25 import sync4j.framework.server.store.PersistentStoreException; 26 27 49 public interface PersistentStore { 50 51 53 60 public void configure(Map config) throws ConfigPersistentStoreException; 61 62 72 public boolean store(Object o) throws PersistentStoreException; 73 74 84 public boolean read(Object o) throws PersistentStoreException; 85 86 97 public Object [] read(Class objClass) throws PersistentStoreException; 98 99 109 public boolean delete(Object o) throws PersistentStoreException; 110 111 123 public Object [] read(Object o, Clause clause) throws PersistentStoreException; 124 125 136 public int count(Object o, Clause clause) throws PersistentStoreException; 137 138 139 } 140 | Popular Tags |