1 10 11 package com.triactive.jdo; 12 13 import com.triactive.jdo.StateManager; 14 import com.triactive.jdo.store.StoreManager; 15 import java.io.PrintWriter ; 16 import java.sql.Connection ; 17 import java.sql.SQLException ; 18 19 20 29 30 public interface PersistenceManager extends javax.jdo.PersistenceManager 31 { 32 35 StoreManager getStoreManager(); 36 37 50 Connection getConnection(boolean forWriting) throws SQLException ; 51 52 57 void releaseConnection(Connection conn) throws SQLException ; 58 59 62 void enlistInTransaction(StateManager sm); 63 64 67 void evictFromTransaction(StateManager sm); 68 69 73 void removeStateManager(StateManager sm); 74 75 93 Object getObjectById(Object id, Class contextClass, boolean validate); 94 95 119 Object getObjectById(Object id, Class contextClass, int[] fieldNumbers, FieldManager fieldManager); 120 121 132 StateManager findStateManager(Object obj); 133 134 140 void hereIsStateManager(StateManager sm, Object obj); 141 142 152 void markDirty(StateManager sm); 153 154 157 void flushDirty(); 158 159 163 void dataStoreModified(); 164 165 172 int dataStoreModifyCount(); 173 174 177 void dump(Object obj, PrintWriter out); 178 } 179 | Popular Tags |