1 5 package org.h2.store; 6 7 import java.sql.SQLException ; 8 9 import org.h2.value.Value; 10 11 public interface DataHandler { 12 boolean getTextStorage(); 13 String getDatabasePath(); 14 FileStore openFile(String name, boolean mustExist) throws SQLException ; 15 int getChecksum(byte[] data, int start, int end); 16 void checkPowerOff() throws SQLException ; 17 void checkWritingAllowed() throws SQLException ; 18 void freeUpDiskSpace() throws SQLException ; 19 void handleInvalidChecksum() throws SQLException ; 20 int compareTypeSave(Value a, Value b) throws SQLException ; 21 int getMaxLengthInplaceLob(); 22 23 String getLobCompressionAlgorithm(int type); 24 25 int allocateObjectId(boolean needFresh, boolean dataFile); 27 String createTempFile() throws SQLException ; 28 29 } 30 | Popular Tags |