| org.h2.store.DataHandler
All known Subclasses: org.h2.engine.Database, org.h2.test.unit.TestFile, org.h2.test.unit.TestDataPage, org.h2.test.unit.TestValueMemory, org.h2.engine.SessionRemote, org.h2.command.dml.ScriptBase, org.h2.tools.Recover, org.h2.test.unit.TestValueHashMap,
DataHandler | public interface DataHandler (Code) | | A data handler contains a number of callback methods.
The most important implementing class is a database.
|
allocateObjectId | int allocateObjectId(boolean needFresh, boolean dataFile)(Code) | | Get the next object id.
This method is not required if LOB_FILES_IN_DIRECTORIES is enabled.
Parameters: needFresh - if a fresh id is required Parameters: dataFile - true if the id is for the data file the new id |
checkPowerOff | void checkPowerOff() throws SQLException(Code) | | Check if the simulated power failure occured.
This call will decrement the countdown.
throws: SQLException - if the simulated power failure occured |
compareTypeSave | int compareTypeSave(Value a, Value b) throws SQLException(Code) | | Compare two values.
Parameters: a - the first value Parameters: b - the second value 0 for equal, 1 if a is larger than b, and -1 otherwise |
createTempFile | String createTempFile() throws SQLException(Code) | | Create a temporary file and return the file name.
the file name |
freeUpDiskSpace | void freeUpDiskSpace() throws SQLException(Code) | | Free up disk space if possible.
This method is called if more space is needed.
throws: SQLException - if no more space could be freed |
getChecksum | int getChecksum(byte[] data, int start, int end)(Code) | | Calculate the checksum for the byte array.
Parameters: data - the byte array Parameters: start - the starting offset Parameters: end - the end offset the checksum |
getDatabasePath | String getDatabasePath()(Code) | | Get the database path.
the database path |
getLobCompressionAlgorithm | String getLobCompressionAlgorithm(int type)(Code) | | Get the compression algorithm used for large objects.
Parameters: type - the data type (CLOB or BLOB) the compression algorithm, or null |
getLobFileListCache | SmallLRUCache getLobFileListCache()(Code) | | Get the lob file list cache if it is used.
the cache or null |
getLobFilesInDirectories | boolean getLobFilesInDirectories()(Code) | | Checks if the lob files stored in directories.
true if lob files are stored in directories. |
getLobSyncObject | Object getLobSyncObject()(Code) | | Get the synchronization object for lob operations.
the synchronization object |
getMaxLengthInplaceLob | int getMaxLengthInplaceLob()(Code) | | Get the maximum length of a in-place large object
the maximum size |
getTextStorage | boolean getTextStorage()(Code) | | Check if text storage is used.
if text storage is used. |
handleInvalidChecksum | void handleInvalidChecksum() throws SQLException(Code) | | Called when the checksum was invalid.
throws: SQLException - if this should not be ignored |
openFile | FileStore openFile(String name, String mode, boolean mustExist) throws SQLException(Code) | | Open a file at the given location.
Parameters: name - the file name Parameters: mode - the mode Parameters: mustExist - whether the file must already exist the file |
|
|