public interface: WritableStorageFactory
All Implemented Interfaces:
All Known Implementing Classes:
DirStorageFactory4, VFMemoryStorageFactory, DirStorageFactory
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.
|Method from org.apache.derby.io.WritableStorageFactory Detail:|
public boolean supportsWriteSync()
This method tests whether the StorageRandomAccessFile "rws" and "rwd" modes
are implemented. If the "rws" and "rwd" modes are supported then the database
engine will conclude that the write methods of "rws"/"rwd" mode
StorageRandomAccessFiles are slow but the sync method is fast and optimize
public void sync(OutputStream stream,
boolean metaData) throws IOException, SyncFailedException
Force the data of an output stream out to the underlying storage. That is, ensure that
it has been made persistent. If the database is to be transient, that is, if the database
does not survive a restart, then the sync method implementation need not do anything.