|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataHandler
A data handler contains a number of callback methods. The most important implementing class is a database.
Method Summary | |
---|---|
int |
allocateObjectId(boolean needFresh,
boolean dataFile)
Get the next object id. |
void |
checkPowerOff()
Check if the simulated power failure occurred. |
void |
checkWritingAllowed()
Check if writing is allowed. |
int |
compareTypeSave(Value a,
Value b)
Compare two values. |
java.lang.String |
createTempFile()
Create a temporary file and return the file name. |
void |
freeUpDiskSpace()
Free up disk space if possible. |
int |
getChecksum(byte[] data,
int start,
int end)
Calculate the checksum for the byte array. |
java.lang.String |
getDatabasePath()
Get the database path. |
java.lang.String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects. |
SmallLRUCache<java.lang.String,java.lang.String[]> |
getLobFileListCache()
Get the lob file list cache if it is used. |
boolean |
getLobFilesInDirectories()
Checks if the lob files stored in directories. |
java.lang.Object |
getLobSyncObject()
Get the synchronization object for lob operations. |
int |
getMaxLengthInplaceLob()
Get the maximum length of a in-place large object |
TempFileDeleter |
getTempFileDeleter()
Get the temp file deleter mechanism. |
Trace |
getTrace()
Get the trace writer. |
void |
handleInvalidChecksum()
Called when the checksum was invalid. |
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
Open a file at the given location. |
Method Detail |
---|
java.lang.String getDatabasePath()
FileStore openFile(java.lang.String name, java.lang.String mode, boolean mustExist) throws java.sql.SQLException
name
- the file namemode
- the modemustExist
- whether the file must already exist
java.sql.SQLException
int getChecksum(byte[] data, int start, int end)
data
- the byte arraystart
- the starting offsetend
- the end offset
void checkPowerOff() throws java.sql.SQLException
java.sql.SQLException
- if the simulated power failure occurredvoid checkWritingAllowed() throws java.sql.SQLException
java.sql.SQLException
- if it is not allowedvoid freeUpDiskSpace() throws java.sql.SQLException
java.sql.SQLException
- if no more space could be freedvoid handleInvalidChecksum() throws java.sql.SQLException
java.sql.SQLException
- if this should not be ignoredint compareTypeSave(Value a, Value b) throws java.sql.SQLException
a
- the first valueb
- the second value
java.sql.SQLException
int getMaxLengthInplaceLob()
java.lang.String getLobCompressionAlgorithm(int type)
type
- the data type (CLOB or BLOB)
int allocateObjectId(boolean needFresh, boolean dataFile)
needFresh
- if a fresh id is requireddataFile
- true if the id is for the data file
java.lang.String createTempFile() throws java.sql.SQLException
java.sql.SQLException
TempFileDeleter getTempFileDeleter()
java.lang.Object getLobSyncObject()
boolean getLobFilesInDirectories()
SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
Trace getTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |