1 27 package org.objectweb.speedo.pm.api; 28 29 import org.objectweb.speedo.mim.api.SpeedoProxy; 30 import org.objectweb.perseus.persistence.api.TransactionalPersistenceManager; 31 import org.objectweb.perseus.concurrency.lib.Semaphore; 32 33 import javax.jdo.datastore.JDOConnection; 34 import javax.jdo.PersistenceManager; 35 import javax.transaction.Synchronization ; 36 37 import java.util.Collection ; 38 import java.util.Map ; 39 40 55 public interface ProxyManager 56 extends PersistenceManager, Synchronization , JDOConnection { 57 58 61 TransactionalPersistenceManager getTransactionalPersistenceManager(); 62 63 71 void open(Object connectionSpec); 72 73 76 Object getConnectionSpec(); 77 78 86 void addUse(); 87 88 93 Object speedoGetObjectById(Object oid, boolean validate); 94 95 106 void speedoMakePersistent(SpeedoProxy sp, boolean byAttach); 107 108 115 void speedoDeletePersistent(Object o); 116 117 120 Semaphore getSemaphore(); 121 122 126 Object speedoDetachCopy(SpeedoProxy sp, Map map, Collection fgHints); 127 128 Object speedoAttachCopy(Object detached, boolean makeTransactional, Map map); 129 130 void speedoRefresh(SpeedoProxy sp, Map map, Collection fgHints); 131 132 void speedoRetrieve(SpeedoProxy sp, Map map, Collection fgHints); 133 } 134 | Popular Tags |