Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.io
Class DirStorageFactory4  view DirStorageFactory4 download DirStorageFactory4.java

java.lang.Object
  extended byorg.apache.derby.impl.io.BaseStorageFactory
      extended byorg.apache.derby.impl.io.DirStorageFactory
          extended byorg.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
           
 
Fields inherited from class org.apache.derby.impl.io.DirStorageFactory
canonicalName, dataDirectory, home, separatedDataDirectory, tempDir, tempDirPath, uniqueName
 
Fields inherited from interface org.apache.derby.io.StorageFactory
VERSION_NUMBER
 
Constructor Summary
DirStorageFactory4()
          Most of the initialization is done in the init method.
 
Method Summary
(package private)  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.
(package private)  org.apache.derby.io.StorageFile newPersistentFile(java.lang.String path)
          Construct a persistent StorageFile from a path name.
(package private)  org.apache.derby.io.StorageFile newPersistentFile(java.lang.String directoryName, java.lang.String fileName)
          Construct a persistent StorageFile from a directory and path name.
 boolean supportsRws()
          This method tests whether the "rws" and "rwd" modes are implemented.
 
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
 
Methods inherited from interface org.apache.derby.io.StorageFactory
getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, shutdown
 

Field Detail

rwsOK

private static final boolean rwsOK
Constructor Detail

DirStorageFactory4

public DirStorageFactory4()
Most of the initialization is done in the init method.

Method Detail

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