1 25 26 package org.objectweb.perseus.persistence.api; 27 28 import org.objectweb.perseus.cache.api.CacheEntry; 29 30 34 public interface PersistenceManager { 35 53 State export(WorkingSet context, Object obj) throws PersistenceException; 54 55 66 State export(WorkingSet context, Object obj, Object hints) throws PersistenceException; 67 68 80 State unexport(WorkingSet context, Object oid) throws PersistenceException; 81 82 94 State unexport(WorkingSet context, CacheEntry ce) throws PersistenceException; 95 96 108 CacheEntry getObjectById(WorkingSet context, Object oid) throws PersistenceException; 109 110 118 State readIntention(WorkingSet context, Object oid, Object thinLock) throws PersistenceException; 119 120 128 State readIntention(WorkingSet context, CacheEntry ce, Object thinLock) throws PersistenceException; 129 130 138 State writeIntention(WorkingSet context, Object oid, Object thinLock) throws PersistenceException; 139 140 148 State writeIntention(WorkingSet context, CacheEntry ce, Object thinLock) throws PersistenceException; 149 150 157 void accessCompletion(WorkingSet context, State ce) throws PersistenceException; 158 159 168 void flush(WorkingSet context, StateFilter statefilter) throws PersistenceException; 169 170 177 void flush(WorkingSet context, State state) throws PersistenceException; 178 179 191 boolean evict(WorkingSet context, Object oid, boolean force) 192 throws PersistenceException; 193 194 198 int evictAll(WorkingSet context, boolean force) throws PersistenceException; 199 200 211 void unbind(WorkingSet ws, Object oid) throws PersistenceException; 212 213 224 void unbind(WorkingSet ws, CacheEntry ce) throws PersistenceException; 225 226 235 void refresh(WorkingSet ws, Object oid) throws PersistenceException; 236 237 246 void refresh(WorkingSet ws, CacheEntry ce) throws PersistenceException; 247 248 255 WorkingSet createWS(Object userObject) 256 throws PersistenceException; 257 258 266 WorkingSet createWS(Object userObject, 267 Object workingSetType) 268 throws PersistenceException; 269 270 276 void close(WorkingSet context) throws PersistenceException; 277 278 } 279 | Popular Tags |