1 29 30 package com.caucho.db.store; 31 32 import java.io.IOException ; 33 34 37 public class RawTransaction extends StoreTransaction { 38 private static final RawTransaction XA = new RawTransaction(); 39 40 private RawTransaction() 41 { 42 } 43 44 public static RawTransaction create() 45 { 46 return XA; 47 } 48 49 52 public Block readBlock(Store store, long blockAddress) 53 throws IOException 54 { 55 return store.readBlock(blockAddress); 56 } 57 58 61 public Block createWriteBlock(Block block) 62 throws IOException 63 { 64 return block; 65 } 66 67 70 public void addUpdateBlock(Block block) 71 throws IOException 72 { 73 } 74 75 78 public Block createAutoCommitWriteBlock(Block block) 79 throws IOException 80 { 81 return block; 82 } 83 } 84 | Popular Tags |