1 23 24 29 30 package com.sun.jdo.spi.persistence.support.sqlstore; 31 32 import com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper; 33 34 36 public interface PersistenceManager 37 extends com.sun.jdo.api.persistence.support.PersistenceManager 38 { 39 public PersistenceManagerWrapper getCurrentWrapper(); 40 41 public Object newInstance(StateManager sm); 42 43 public void setStateManager(Object pc, StateManager sm); 44 45 public void setFlags(Object pc, byte flags); 46 47 public byte getFlags(Object pc); 48 49 public StateManager getStateManager(Object pc); 50 51 public void setField(Object pc, int fieldNumber, Object value); 52 53 public Object getField(Object pc, int fieldNumber); 54 55 public void clearFields(Object pc); 56 57 71 public Object retrieve(RetrieveDesc action, ValueFetcher parameters); 72 73 86 public Object retrieve(RetrieveDesc action); 87 88 91 public RetrieveDesc getRetrieveDesc(Class classType); 92 93 97 public RetrieveDesc getRetrieveDesc(String fieldName, Class classType); 98 99 104 public void afterCompletion(int status); 105 106 111 public void beforeCompletion(); 112 113 117 public void internalFlush(); 118 119 124 public void registerInstance(StateManager sm, Object oid, 125 boolean throwDuplicateException, boolean forceRegister); 126 127 132 public void registerInstance(StateManager sm, Object oid); 133 134 137 public void deregisterInstance(Object oid); 138 139 142 public void deregisterInstance(Object oid, StateManager sm); 143 144 148 public void notifyStatusChange(boolean isActive); 149 150 154 public void notifyOptimistic(boolean optimistic); 155 156 159 public boolean isOptimisticTransaction(); 160 161 165 public void notifyNontransactionalRead(boolean nontransactionalRead); 166 167 170 public boolean isNontransactionalRead(); 171 172 175 public boolean isActiveTransaction(); 176 177 188 public Object newSCOInstanceInternal (Class type, Object owner, String fieldName); 189 190 203 Object newCollectionInstanceInternal (Class type, Object owner, String fieldName, 204 Class elementType, boolean allowNulls, int initialSize); 205 206 209 public void acquireFieldUpdateLock(); 210 211 214 public void releaseFieldUpdateLock(); 215 216 220 public void acquireShareLock(); 221 222 226 public void releaseShareLock(); 227 228 233 public void acquireExclusiveLock(); 234 235 240 public void releaseExclusiveLock(); 241 242 247 public void forceClose(); 248 249 254 public StateManager findOrCreateStateManager(Object oid, Class pcClass); 255 256 259 public void acquireCacheLock(); 260 261 263 public void releaseCacheLock(); 264 265 273 public boolean initializeFromVersionConsistencyCache(StateManager sm); 274 275 } 276 | Popular Tags |