1 27 28 package org.objectweb.speedo.mim.api; 29 30 import org.objectweb.perseus.persistence.api.State; 31 import org.objectweb.speedo.pm.api.ProxyManager; 32 import org.objectweb.jorm.api.PAccessor; 33 import java.io.Serializable ; 34 import java.util.Collection ; 35 import java.util.Map ; 36 37 42 public interface SpeedoAccessor extends PAccessor, State, Serializable { 43 44 50 void jdoChangeStatus(byte action); 51 52 58 byte jdoGetStatus(); 59 60 66 void jdoSetStatus(byte newValue); 67 68 75 76 81 void changeVersion(); 82 83 86 long getVersion(); 87 88 91 boolean checkVersion(SpeedoAccessor sa); 92 93 98 byte getDetachedStatus(); 99 100 105 void setDetachedStatus(byte newValue); 106 107 110 SpeedoProxy getSpeedoProxy(); 111 112 115 void setSpeedoProxy(SpeedoProxy sp); 116 117 120 void prepareWrite(); 121 122 125 void workingSetClosed(); 126 127 131 boolean hasBeenFlush(); 132 133 139 void setFlushed(boolean val); 140 141 149 void makePersistent(ProxyManager pm); 150 151 159 void deletePersistent(ProxyManager pm); 160 161 170 void loadFields(ProxyManager pm, long[] fields); 171 172 183 void detachCopy(ProxyManager pm, 184 Map map, 185 SpeedoAccessor clone, 186 Collection fgHints); 187 188 199 void attachCopy(ProxyManager pm, 200 Map map, 201 SpeedoAccessor detached, 202 boolean makeTransactional); 203 204 214 void refresh(ProxyManager pm, Map map, Collection fgHints); 215 216 226 void retrieve(ProxyManager pm, Map map, Collection fgHints); 227 228 232 void forceDetachedDirty(); 233 234 238 void restoreDetachedNone(); 239 240 244 boolean isToMerge(); 245 246 254 void makeToMerge(Object thinLock); 255 256 262 State merge(State oldState); 263 264 void unSwizzle(); 265 266 272 void indexFieldModified(int cacheId, boolean rebind); 273 } 274 275 | Popular Tags |