01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.persistence.api;
05:
06: import com.tc.object.ObjectID;
07: import com.tc.objectserver.api.ManagedObjectProvider;
08: import com.tc.objectserver.core.api.ManagedObject;
09: import com.tc.text.PrettyPrintable;
10: import com.tc.util.ObjectIDSet2;
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,
18: ObjectIDSequence, PrettyPrintable {
19:
20: public void addNewObject(ManagedObject managed);
21:
22: public void commitObject(PersistenceTransaction tx,
23: ManagedObject object);
24:
25: public void commitAllObjects(PersistenceTransaction tx,
26: Collection collection);
27:
28: /**
29: * synchronous
30: */
31: public void removeAllObjectsByIDNow(PersistenceTransaction tx,
32: Collection objectIds);
33:
34: /**
35: * Returns the set of object ids.
36: */
37: public ObjectIDSet2 getAllObjectIDs();
38:
39: public boolean containsObject(ObjectID id);
40:
41: public ObjectID getRootID(String name);
42:
43: public Set getRoots();
44:
45: public Set getRootNames();
46:
47: public void addNewRoot(PersistenceTransaction tx, String rootName,
48: ObjectID id);
49:
50: public void shutdown();
51:
52: public boolean inShutdown();
53:
54: public Map getRootNamesToIDsMap();
55:
56: }
|