1 package com.quadcap.sql.file; 2 3 40 41 import java.io.File ; 42 import java.io.IOException ; 43 44 import java.util.Properties ; 45 46 import com.quadcap.sql.lock.Transaction; 47 48 53 public class Log0 implements Log { 54 Datafile db; 55 58 public void init(Datafile db, boolean create, Properties props) 59 throws IOException 60 { 61 this.db = db; 62 } 63 64 67 public void start() {} 68 69 72 public Datafile getDatafile() { return db; } 73 74 77 public File getDbRootDir() { return db.getDbRootDir(); } 78 79 82 public void addEntry(LogEntry entry) throws IOException {} 83 84 87 public void reallyAddEntry(LogEntry entry) throws IOException {} 88 89 92 public void close() throws IOException {} 93 94 97 public void flushLog() throws IOException {} 98 99 102 public void checkpoint() throws IOException {} 103 104 107 public void sync() throws IOException {} 108 109 112 public void rollbackTransaction(Transaction trans) throws IOException {} 113 114 117 public void rollbackStatement(Transaction trans, int stmtId) 118 throws IOException 119 { 120 } 121 122 125 public void restart() throws Exception {} 126 127 130 public long getRowMap(long rowId) { return rowId; } 131 132 140 public void putRowMap(long logRow, long fileRow) {} 141 142 145 public void removeRowMap(long row) {} 146 147 152 public boolean isLogging() { return false; } 153 154 157 public void saveBlock(long b) throws IOException { 158 } 159 160 163 public void restoreBlocks() throws IOException { 164 } 165 166 169 public void resetBlocks() throws IOException { 170 } 171 172 175 public void remove() { 176 } 177 178 181 public boolean inRecovery() { return false; } 182 183 } 184 185 | Popular Tags |