Top Description Fields Constructors Methods
org.apache.derby.impl.io

public Class CPStorageFactory

extends BaseStorageFactory
Class Inheritance
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.io.StorageFactory, .StorageFile, java.io.FileNotFoundException, .InputStream, .OutputStream, .IOException, java.util.Properties

This class provides a class path based implementation of the StorageFactory interface. It is used by the database engine to access persistent data and transaction logs under the classpath subsubprotocol.

Field Summary

Inherited from org.apache.derby.impl.io.BaseStorageFactory:
canonicalNamedataDirectoryhomeseparatedDataDirectorytempDirtempDirPathuniqueName

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv StorageFile

Returns:

A corresponding StorageFile object
newPersistentFile
(String
The path name of the file
path
)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a persistent StorageFile from a path name.

pack-priv StorageFile

Returns:

A corresponding StorageFile object
newPersistentFile
(String
The directory part of the path name. Must not be null, nor may it be in the temp dir.
directoryName
,
String
The name of the file within the directory.
fileName
)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a StorageFile from a directory and file name.

pack-priv StorageFile

Returns:

A corresponding StorageFile object
newPersistentFile
(StorageFile
The directory part of the path name.
directoryName
,
String
The name of the file within the directory.
fileName
)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a StorageFile from a directory and file name.

Inherited from org.apache.derby.impl.io.BaseStorageFactory:
createTempDircreateTemporaryFilegetCanonicalNamegetSeparatorgetStorageFactoryVersiongetTempDirinitisFastisReadOnlyDatabasenewStorageFilenewStorageFilenewStorageFilesetCanonicalNameshutdownsupportsRandomAccess

Constructor Detail

CPStorageFactoryback to summary
public CPStorageFactory()

Method Detail

doInitback to summary
pack-priv void doInit() throws IOException

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.doInit.

newPersistentFileback to summary
pack-priv StorageFile newPersistentFile(String path)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a persistent StorageFile from a path name.

Parameters
path:String

The path name of the file

Returns:StorageFile

A corresponding StorageFile object

newPersistentFileback to summary
pack-priv StorageFile newPersistentFile(String directoryName, String fileName)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a StorageFile from a directory and file name.

Parameters
directoryName:String

The directory part of the path name. Must not be null, nor may it be in the temp dir.

fileName:String

The name of the file within the directory.

Returns:StorageFile

A corresponding StorageFile object

newPersistentFileback to summary
pack-priv StorageFile newPersistentFile(StorageFile directoryName, String fileName)

Implements abstract org.apache.derby.impl.io.BaseStorageFactory.newPersistentFile.

Construct a StorageFile from a directory and file name.

Parameters
directoryName:StorageFile

The directory part of the path name.

fileName:String

The name of the file within the directory.

Returns:StorageFile

A corresponding StorageFile object