KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > store > DataHandler


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

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