| java.lang.Object java.io.RandomAccessFile org.apache.derby.impl.io.DirRandomAccessFile
All known Subclasses: org.apache.derby.impl.io.DirRandomAccessFile4,
DirRandomAccessFile | class DirRandomAccessFile extends RandomAccessFile implements StorageRandomAccessFile(Code) | | This class provides a disk based implementation of the StIRandomAccess File interface. It is used by the
database engine to access persistent data and transaction logs under the directory (default) subsubprotocol.
|
Constructor Summary | |
| DirRandomAccessFile(File name, String mode) Construct a StorageRandomAccessFileImpl.
Parameters: name - The file name. Parameters: mode - The file open mode: "r", "rw", "rws", or "rwd". |
Method Summary | |
public void | sync(boolean metaData) Force any changes out to the persistent store. |
DirRandomAccessFile | DirRandomAccessFile(File name, String mode) throws FileNotFoundException(Code) | | Construct a StorageRandomAccessFileImpl.
Parameters: name - The file name. Parameters: mode - The file open mode: "r", "rw", "rws", or "rwd". The "rws" and "rwd" modes specify that the file is tobe synchronized, consistent with the java.io.RandomAccessFile class. However theStorageRandomAccessFile.sync() method will be called even if the file was openedin "rws" or "rwd" mode. If the "rws" or "rwd" modes are supported then the implementationof StorageRandomAccessFile.sync need not do anything. exception: IllegalArgumentException - if the mode argument is not equal to one of "r", "rw". exception: FileNotFoundException - if the file exists but is a directory rather than a regularfile, or cannot be opened or created for any other reason . |
sync | public void sync(boolean metaData) throws IOException(Code) | | Force any changes out to the persistent store.
Parameters: metaData - If true then this method is required to force changes to both the file'scontent and metadata to be written to storage; otherwise, it need only force content changesto be written. exception: IOException - If an IO error occurs. |
|
|