public class DirStorageFactory4 extends DirStorageFactory
canonicalName, dataDirectory, home, separatedDataDirectory, tempDir, tempDirPath, uniqueName
VERSION_NUMBER
Constructor and Description |
---|
DirStorageFactory4()
Most of the initialization is done in the init method.
|
Modifier and Type | Method and Description |
---|---|
(package private) StorageFile |
newPersistentFile(StorageFile directoryName,
java.lang.String fileName)
Construct a persistent StorageFile from a directory and path name.
|
(package private) StorageFile |
newPersistentFile(java.lang.String path)
Construct a persistent StorageFile from a path name.
|
(package private) StorageFile |
newPersistentFile(java.lang.String directoryName,
java.lang.String fileName)
Construct a persistent StorageFile from a directory and path name.
|
boolean |
supportsWriteSync()
This method tests whether the "rws" and "rwd" modes are implemented.
|
doInit, isReadOnlyDatabase, newStorageFile, newStorageFile, newStorageFile, supportsRandomAccess, sync
createTempDir, createTemporaryFile, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, setCanonicalName, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTemporaryFile, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, setCanonicalName, shutdown
public DirStorageFactory4()
StorageFile newPersistentFile(java.lang.String path)
newPersistentFile
in class DirStorageFactory
path
- The path name of the file. Guaranteed not to be in the temporary file directory. If null
then the database directory should be returned.StorageFile newPersistentFile(java.lang.String directoryName, java.lang.String fileName)
newPersistentFile
in class DirStorageFactory
directoryName
- The path name of the directory. Guaranteed not to be in the temporary file directory.
Guaranteed not to be nullfileName
- The name of the file within the directory. Guaranteed not to be null.StorageFile newPersistentFile(StorageFile directoryName, java.lang.String fileName)
newPersistentFile
in class DirStorageFactory
directoryName
- The path name of the directory. Guaranteed not to be to be null. Guaranteed to be
created by a call to one of the newPersistentFile methods.fileName
- The name of the file within the directory. Guaranteed not to be null.public boolean supportsWriteSync()
supportsWriteSync
in interface WritableStorageFactory
supportsWriteSync
in class DirStorageFactory