Package org.apache.derby.impl.io
Class URLStorageFactory
java.lang.Object
org.apache.derby.impl.io.BaseStorageFactory
org.apache.derby.impl.io.URLStorageFactory
- All Implemented Interfaces:
StorageFactory
This class provides a http based implementation of the StorageFactory interface. It is used by the
database engine to access persistent data and transaction logs under the http and https subsubprotocols.
-
Field Summary
Fields inherited from class org.apache.derby.impl.io.BaseStorageFactory
canonicalName, dataDirectory, home, separatedDataDirectory, tempDir, tempDirPath, uniqueName
Fields inherited from interface org.apache.derby.io.StorageFactory
VERSION_NUMBER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
doInit()
(package private) StorageFile
newPersistentFile
(String path) Construct a persistent StorageFile from a path name.(package private) StorageFile
newPersistentFile
(String directoryName, String fileName) Construct a StorageFile from a directory and file name.(package private) StorageFile
newPersistentFile
(StorageFile directoryName, String fileName) Construct a StorageFile from a directory and file name.Methods inherited from class org.apache.derby.impl.io.BaseStorageFactory
createTempDir, createTemporaryFile, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, isReadOnlyDatabase, newStorageFile, newStorageFile, newStorageFile, setCanonicalName, shutdown, supportsRandomAccess
-
Constructor Details
-
URLStorageFactory
public URLStorageFactory()
-
-
Method Details
-
newPersistentFile
Construct a persistent StorageFile from a path name.- Specified by:
newPersistentFile
in classBaseStorageFactory
- Parameters:
path
- The path name of the file- Returns:
- A corresponding StorageFile object
-
newPersistentFile
Construct a StorageFile from a directory and file name.- Specified by:
newPersistentFile
in classBaseStorageFactory
- Parameters:
directoryName
- The directory part of the path name. Must not be null, nor may it be in the temp dir.fileName
- The name of the file within the directory.- Returns:
- A corresponding StorageFile object
-
newPersistentFile
Construct a StorageFile from a directory and file name.- Specified by:
newPersistentFile
in classBaseStorageFactory
- Parameters:
directoryName
- The directory part of the path name.fileName
- The name of the file within the directory.- Returns:
- A corresponding StorageFile object
-
doInit
- Specified by:
doInit
in classBaseStorageFactory
- Throws:
IOException
-