1 18 package org.objectweb.perseus.persistence.api; 19 20 import org.objectweb.perseus.cache.api.CacheEntry; 21 import org.objectweb.perseus.cache.api.CacheEventListener; 22 23 32 public interface StateManager extends CacheEventListener { 33 34 39 State createState(CacheEntry ce); 40 41 47 State createState(State s); 48 49 54 State getReferenceState(CacheEntry ce); 55 56 63 void setReferenceState(CacheEntry ce, State state); 64 65 70 void destroyState(State state); 71 72 75 void makeUnexported(State state); 76 77 81 boolean isUnexported(State state); 82 83 86 void makeExported(State state); 87 88 92 boolean isExported(State state); 93 94 98 void makeDirty(State state); 99 100 105 boolean isDirty(State state); 106 107 111 void makeClean(State state); 112 113 117 void makeFlushed(State state); 118 119 123 boolean isFlushed(State state); 124 125 130 void makeUnbound(CacheEntry ce); 131 132 138 void makeBound(CacheEntry ce, Object oid); 139 140 144 boolean isBound(CacheEntry ce); 145 146 150 boolean isToMerge(State state); 151 152 159 void makeToMerge(State state, Object thinLock); 160 161 167 State merge(State oldState, State newState); 168 169 175 void stateNoMoreUsed(State state); 176 } 177 | Popular Tags |