java.lang.Object
org.apache.derby.impl.io.BaseStorageFactory
org.apache.derby.impl.io.DirStorageFactory
org.apache.derby.impl.io.DirStorageFactory4
- All Implemented Interfaces:
- org.apache.derby.io.StorageFactory, org.apache.derby.io.WritableStorageFactory
- public class DirStorageFactory4
- extends DirStorageFactory
This class implements the WritableStorageFactory interface using features found in Java 1.4 but
not in earlier versions of Java.
|
Field Summary |
private static boolean |
rwsOK
|
|
Constructor Summary |
DirStorageFactory4()
Most of the initialization is done in the init method. |
| Methods inherited from class org.apache.derby.impl.io.DirStorageFactory |
createTempDir, doInit, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, isReadOnlyDatabase, newStorageFile, newStorageFile, newStorageFile, shutdown, supportsRandomAccess, sync |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rwsOK
private static final boolean rwsOK
DirStorageFactory4
public DirStorageFactory4()
- Most of the initialization is done in the init method.
newPersistentFile
org.apache.derby.io.StorageFile newPersistentFile(java.lang.String path)
- Construct a persistent StorageFile from a path name.
- Overrides:
newPersistentFile in class DirStorageFactory
newPersistentFile
org.apache.derby.io.StorageFile newPersistentFile(java.lang.String directoryName,
java.lang.String fileName)
- Construct a persistent StorageFile from a directory and path name.
- Overrides:
newPersistentFile in class DirStorageFactory
newPersistentFile
org.apache.derby.io.StorageFile newPersistentFile(org.apache.derby.io.StorageFile directoryName,
java.lang.String fileName)
- Construct a persistent StorageFile from a directory and path name.
- Overrides:
newPersistentFile in class DirStorageFactory
supportsRws
public boolean supportsRws()
- This method tests whether the "rws" and "rwd" modes are implemented. If the "rws" method is supported
then the database engine will conclude that the write methods of "rws" mode StorageRandomAccessFiles are
slow but the sync method is fast and optimize accordingly.
- Specified by:
supportsRws in interface org.apache.derby.io.WritableStorageFactory- Overrides:
supportsRws in class DirStorageFactory