public interface DataHandler
| Modifier and Type | Method and Description |
|---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred.
|
void |
checkWritingAllowed()
Check if writing is allowed.
|
CompareMode |
getCompareMode()
Return compare mode.
|
java.lang.String |
getDatabasePath()
Get the database path.
|
JavaObjectSerializer |
getJavaObjectSerializer()
Return the serializer to be used for java objects being stored in
column of type OTHER.
|
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.
|
LobStorageInterface |
getLobStorage()
Get the lob storage mechanism to use.
|
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.
|
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
Open a file at the given location.
|
int |
readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
Read from a lob.
|
java.lang.String getDatabasePath()
FileStore openFile(java.lang.String name, java.lang.String mode, boolean mustExist)
name - the file namemode - the modemustExist - whether the file must already existvoid checkPowerOff()
throws DbException
DbException - if the simulated power failure occurredvoid checkWritingAllowed()
throws DbException
DbException - if it is not allowedint getMaxLengthInplaceLob()
java.lang.String getLobCompressionAlgorithm(int type)
type - the data type (CLOB or BLOB)TempFileDeleter getTempFileDeleter()
java.lang.Object getLobSyncObject()
SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
LobStorageInterface getLobStorage()
int readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
lobId - the lob idhmac - the message authentication codeoffset - the offset within the lobbuff - the target bufferoff - the offset within the target bufferlength - the number of bytes to readJavaObjectSerializer getJavaObjectSerializer()
CompareMode getCompareMode()