1 21 22 package org.apache.derby.iapi.store.access; 23 24 import org.apache.derby.catalog.UUID; 25 26 import org.apache.derby.iapi.services.context.ContextManager; 27 import org.apache.derby.iapi.services.locks.LockFactory; 28 29 import org.apache.derby.iapi.error.StandardException; 30 31 import org.apache.derby.iapi.store.access.conglomerate.MethodFactory; 32 33 import org.apache.derby.iapi.services.property.PropertySetCallback; 34 import java.util.Properties ; 35 import java.io.File ; 36 37 51 52 public interface AccessFactory 53 { 54 57 public static final String MODULE = 58 "org.apache.derby.iapi.store.access.AccessFactory"; 59 60 63 void registerAccessMethod(MethodFactory factory); 64 65 70 public void createFinished() throws StandardException; 71 72 77 MethodFactory findMethodFactoryByImpl(String impltype) 78 throws StandardException; 79 80 83 MethodFactory findMethodFactoryByFormat(UUID format); 84 85 91 public LockFactory getLockFactory(); 92 93 94 106 public Object getXAResourceManager() 107 throws StandardException; 108 109 110 113 public boolean isReadOnly(); 114 115 116 117 121 122 123 127 128 138 139 TransactionController getTransaction(ContextManager cm) 140 throws StandardException; 141 142 156 TransactionController getAndNameTransaction( 157 ContextManager cm, 158 String transName) 159 throws StandardException; 160 161 171 public TransactionInfo[] getTransactionInfo(); 172 173 203 Object startXATransaction( 204 ContextManager cm, 205 int format_id, 206 byte[] global_id, 207 byte[] branch_id) 208 throws StandardException; 209 210 211 216 217 223 public void freeze() throws StandardException; 224 225 231 public void unfreeze() throws StandardException; 232 233 244 public void backup(String backupDir, boolean wait) 245 throws StandardException; 246 247 248 269 public void backupAndEnableLogArchiveMode( 270 String backupDir, 271 boolean deleteOnlineArchivedLogFiles, 272 boolean wait) 273 throws StandardException; 274 275 287 public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) 288 throws StandardException; 289 290 291 297 public void checkpoint() throws StandardException; 298 299 303 public void waitForPostCommitToFinishWork(); 304 305 } 306 | Popular Tags |