KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > persistence > api > ManagedObjectStore


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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 JavaDoc;
14 import java.util.Map JavaDoc;
15 import java.util.Set JavaDoc;
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 JavaDoc collection);
24
25   /**
26    * synchronous
27    */

28   public void removeAllObjectsByIDNow(PersistenceTransaction tx, Collection JavaDoc objectIds);
29
30   /**
31    * Returns the set of object ids.
32    */

33   public SyncObjectIdSet getAllObjectIDs();
34
35   public boolean containsObject(ObjectID id);
36
37   public ObjectID getRootID(String JavaDoc name);
38
39   public Set getRoots();
40
41   public Set getRootNames();
42
43   public void addNewRoot(PersistenceTransaction tx, String JavaDoc rootName, ObjectID id);
44
45   public void shutdown();
46
47   public boolean inShutdown();
48
49   public Map JavaDoc getRootNamesToIDsMap();
50
51 }
52
Popular Tags