|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.sqljet.core.internal.fs.SqlJetMemJournal
public class SqlJetMemJournal
This subclass is a subclass of sqlite3_file. Each open memory-journal is an instance of this class.
| Field Summary |
|---|
| Fields inherited from interface org.tmatesoft.sqljet.core.internal.ISqlJetFile |
|---|
PENDING_BYTE, RESERVED_BYTE, SHARED_FIRST, SHARED_SIZE |
| Constructor Summary | |
|---|---|
SqlJetMemJournal()
|
|
| Method Summary | |
|---|---|
boolean |
checkReservedLock()
This routine checks if there is a RESERVED lock held on the specified file by this or any other process. |
void |
close()
Close a file. |
java.util.Set<SqlJetDeviceCharacteristics> |
deviceCharacteristics()
Return the device characteristics for the file. |
long |
fileSize()
Determine the current size of a file in bytes |
SqlJetFileType |
getFileType()
Returns file type. |
SqlJetLockType |
getLockType()
Returns lock type of file. |
java.util.Set<SqlJetFileOpenPermission> |
getPermissions()
Returns assiciated permissions. |
boolean |
isMemJournal()
Return true if the file-handle passed as an argument is an in-memory journal |
boolean |
lock(SqlJetLockType lockType)
Lock the file with the lock specified by parameter locktype - one of the following: (1) SHARED (2) RESERVED (3) PENDING (4) EXCLUSIVE Sometimes when requesting one lock state, additional lock states are inserted in between. |
int |
read(ISqlJetMemoryPointer buffer,
int amount,
long offset)
Read data from a file into a buffer. |
int |
sectorSize()
Return the sector size in bytes of the underlying block device for the specified file. |
void |
sync(java.util.Set<SqlJetSyncFlags> syncFlags)
Make sure all writes to a particular file are committed to disk. |
void |
truncate(long size)
Truncate an open file to a specified size |
boolean |
unlock(SqlJetLockType lockType)
Lower the locking level on file descriptor pFile to locktype. |
void |
write(ISqlJetMemoryPointer buffer,
int amount,
long offset)
Write data from a buffer into a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlJetMemJournal()
| Method Detail |
|---|
public boolean isMemJournal()
ISqlJetFile
isMemJournal in interface ISqlJetFile
public int read(ISqlJetMemoryPointer buffer,
int amount,
long offset)
ISqlJetFile
read in interface ISqlJetFile
public void write(ISqlJetMemoryPointer buffer,
int amount,
long offset)
ISqlJetFile
write in interface ISqlJetFilepublic void truncate(long size)
ISqlJetFile
truncate in interface ISqlJetFilepublic void close()
ISqlJetFile
close in interface ISqlJetFilepublic void sync(java.util.Set<SqlJetSyncFlags> syncFlags)
ISqlJetFile
sync in interface ISqlJetFilepublic long fileSize()
ISqlJetFile
fileSize in interface ISqlJetFilepublic boolean checkReservedLock()
ISqlJetFile
checkReservedLock in interface ISqlJetFilepublic java.util.Set<SqlJetDeviceCharacteristics> deviceCharacteristics()
ISqlJetFile
deviceCharacteristics in interface ISqlJetFilepublic SqlJetFileType getFileType()
ISqlJetFile
getFileType in interface ISqlJetFileSqlJetFileTypepublic SqlJetLockType getLockType()
ISqlJetFile
getLockType in interface ISqlJetFilepublic java.util.Set<SqlJetFileOpenPermission> getPermissions()
ISqlJetFile
getPermissions in interface ISqlJetFileSqlJetFileOpenPermissionpublic boolean lock(SqlJetLockType lockType)
ISqlJetFile
lock in interface ISqlJetFilepublic int sectorSize()
ISqlJetFile
sectorSize in interface ISqlJetFilepublic boolean unlock(SqlJetLockType lockType)
ISqlJetFile
unlock in interface ISqlJetFile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||