:  » Net » Terracotta » com » tc » objectserver » persistence » api » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » objectserver » persistence » api »
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.


import java.util.Collection;
import java.util.Map;
import java.util.Set;

public interface ManagedObjectPersistor {

  public Set loadRoots();

  public Set loadRootNames();

  public ObjectID loadRootID(String name);
  public void addRoot(PersistenceTransaction tx, String name, ObjectID id);

  public ManagedObject loadObjectByID(ObjectID id);

  public long nextObjectIDBatch(int batchSize);

  public void setNextAvailableObjectID(long startID);
  public SyncObjectIdSet getAllObjectIDs();

  public void saveObject(PersistenceTransaction tx, ManagedObject managedObject);

  public void saveAllObjects(PersistenceTransaction tx, Collection managed);

  public void deleteAllObjectsByID(PersistenceTransaction tx, Collection ids);
  public void prettyPrint(PrettyPrinter out);

  public Map loadRootNamesToIDs();

}  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.