|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WritableStorageFactory
This interface extends StorageFactory to provide read/write access to storage.
The database engine will call this interface's methods from its own privilege blocks.
Each WritableStorageFactory instance may be concurrently used by multiple threads.
| Field Summary |
|---|
| Fields inherited from interface org.apache.derby.io.StorageFactory |
|---|
VERSION_NUMBER |
| Method Summary | |
|---|---|
boolean |
supportsWriteSync()
This method tests whether the StorageRandomAccessFile "rws" and "rwd" modes are implemented. |
void |
sync(java.io.OutputStream stream,
boolean metaData)
Force the data of an output stream out to the underlying storage. |
| Methods inherited from interface org.apache.derby.io.StorageFactory |
|---|
createTemporaryFile, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, isReadOnlyDatabase, newStorageFile, newStorageFile, newStorageFile, setCanonicalName, shutdown, supportsRandomAccess |
| Method Detail |
|---|
void sync(java.io.OutputStream stream,
boolean metaData)
throws java.io.IOException,
java.io.SyncFailedException
stream - The stream to be synchronized.metaData - If true then this method must force both changes to the file's
contents and metadata to be written to storage; if false, it need only force file content changes
to be written. The implementation is allowed to ignore this parameter and always force out
metadata changes.
java.io.IOException - if an I/O error occurs.
java.io.SyncFailedException - Thrown when the buffers cannot be flushed,
or because the system cannot guarantee that all the buffers have been
synchronized with physical media.boolean supportsWriteSync()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||