1 21 22 package org.apache.derby.iapi.store.raw; 23 24 import org.apache.derby.iapi.services.io.Formatable; 25 import org.apache.derby.iapi.error.StandardException; 26 import org.apache.derby.iapi.store.raw.log.LogInstant; 27 import org.apache.derby.iapi.util.ByteArray; 28 import java.io.IOException ; 29 import java.io.OutputStream ; 30 import org.apache.derby.iapi.services.io.LimitObjectInput; 31 32 33 42 43 public interface Loggable extends Formatable { 44 45 70 public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) 71 throws StandardException, IOException ; 72 73 87 public ByteArray getPreparedLog() throws StandardException; 88 89 116 public boolean needsRedo(Transaction xact) throws StandardException; 117 118 119 133 public void releaseResource(Transaction xact); 134 135 152 public static final int FIRST = 0x1; public static final int LAST = 0x2; public static final int COMPENSATION = 0x4; public static final int BI_LOG = 0x8; public static final int COMMIT = 0x10; public static final int ABORT = 0x20; public static final int PREPARE = 0x40; public static final int XA_NEEDLOCK = 0x80; 161 162 public static final int RAWSTORE = 0x100; public static final int FILE_RESOURCE = 0x400; public static final int CHECKSUM = 0x800; 166 167 170 public int group(); 171 172 } 173 | Popular Tags |