1 4 package com.tc.objectserver.persistence.api; 5 6 import com.tc.object.ObjectID; 7 import com.tc.objectserver.core.api.ManagedObject; 8 import com.tc.text.PrettyPrinter; 9 import com.tc.util.SyncObjectIdSet; 10 11 import java.util.Collection ; 12 import java.util.Map ; 13 import java.util.Set ; 14 15 public interface ManagedObjectPersistor { 16 17 public Set loadRoots(); 18 19 public Set loadRootNames(); 20 21 public ObjectID loadRootID(String name); 22 23 public void addRoot(PersistenceTransaction tx, String name, ObjectID id); 24 25 public ManagedObject loadObjectByID(ObjectID id); 26 27 public long nextObjectIDBatch(int batchSize); 28 29 public void setNextAvailableObjectID(long startID); 30 31 public SyncObjectIdSet getAllObjectIDs(); 32 33 public void saveObject(PersistenceTransaction tx, ManagedObject managedObject); 34 35 public void saveAllObjects(PersistenceTransaction tx, Collection managed); 36 37 public void deleteAllObjectsByID(PersistenceTransaction tx, Collection ids); 38 39 public void prettyPrint(PrettyPrinter out); 40 41 public Map loadRootNamesToIDs(); 42 43 } 44 | Popular Tags |