1 29 30 package com.caucho.db.store; 31 32 import com.caucho.log.Log; 33 import com.caucho.util.L10N; 34 35 import java.io.IOException ; 36 import java.util.logging.Logger ; 37 40 abstract public class StoreTransaction { 41 private static final Logger log = Log.open(StoreTransaction.class); 42 private static final L10N L = new L10N(StoreTransaction.class); 43 44 47 abstract public Block readBlock(Store store, long blockAddress) 48 throws IOException ; 49 50 53 abstract public Block createWriteBlock(Block block) 54 throws IOException ; 55 56 59 abstract public void addUpdateBlock(Block block) 60 throws IOException ; 61 62 65 public void addUpdateFragmentBlock(Block block) 66 throws IOException 67 { 68 addUpdateBlock(block); 69 } 70 71 74 public Block createAutoCommitWriteBlock(Block block) 75 throws IOException 76 { 77 return block; 78 } 79 } 80 | Popular Tags |