1 10 11 package com.triactive.jdo.store; 12 13 import com.triactive.jdo.StateManager; 14 import java.util.Map ; 15 16 17 28 29 public interface MapStore 30 { 31 StoreManager getStoreManager(); 32 33 Class getKeyType(); 34 35 Class getValueType(); 36 37 boolean allowsNullValues(); 38 39 Map load(StateManager sm); 40 41 int size(StateManager sm); 42 43 boolean isEmpty(StateManager sm); 44 45 boolean containsKey(StateManager sm, Object key); 46 47 boolean containsValue(StateManager sm, Object value); 48 49 boolean containsEntry(StateManager sm, Object key, Object value); 50 51 Object get(StateManager sm, Object key); 52 53 Object put(StateManager sm, Object key, Object value); 54 55 void putAll(StateManager sm, Map m); 56 57 Object remove(StateManager sm, Object key); 58 59 boolean removeEntry(StateManager sm, Object key, Object value); 60 61 void clear(StateManager sm); 62 63 Queryable keySetQuery(StateManager sm); 64 65 Queryable valuesQuery(StateManager sm); 66 67 Queryable entrySetQuery(StateManager sm); 68 } 69 | Popular Tags |