1 4 package com.tc.objectserver.persistence.api; 5 6 import com.tc.object.ObjectID; 7 import com.tc.objectserver.api.ManagedObjectProvider; 8 import com.tc.objectserver.core.api.ManagedObject; 9 import com.tc.text.PrettyPrintable; 10 import com.tc.util.SyncObjectIdSet; 11 import com.tc.util.sequence.ObjectIDSequence; 12 13 import java.util.Collection ; 14 import java.util.Map ; 15 import java.util.Set ; 16 17 public interface ManagedObjectStore extends ManagedObjectProvider, ObjectIDSequence, PrettyPrintable { 18 19 public void addNewObject(ManagedObject managed); 20 21 public void commitObject(PersistenceTransaction tx, ManagedObject object); 22 23 public void commitAllObjects(PersistenceTransaction tx, Collection collection); 24 25 28 public void removeAllObjectsByIDNow(PersistenceTransaction tx, Collection objectIds); 29 30 33 public SyncObjectIdSet getAllObjectIDs(); 34 35 public boolean containsObject(ObjectID id); 36 37 public ObjectID getRootID(String name); 38 39 public Set getRoots(); 40 41 public Set getRootNames(); 42 43 public void addNewRoot(PersistenceTransaction tx, String rootName, ObjectID id); 44 45 public void shutdown(); 46 47 public boolean inShutdown(); 48 49 public Map getRootNamesToIDsMap(); 50 51 } 52 | Popular Tags |