org.apache.derby.impl.io
Class CPStorageFactory

java.lang.Object
  extended by org.apache.derby.impl.io.BaseStorageFactory
      extended by org.apache.derby.impl.io.CPStorageFactory
All Implemented Interfaces:
StorageFactory

public class CPStorageFactory
extends BaseStorageFactory

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
 
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
CPStorageFactory()
           
 
Method Summary
(package private)  void doInit()
           
(package private)  StorageFile newPersistentFile(StorageFile directoryName, java.lang.String fileName)
          Construct a StorageFile from a directory and file 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 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, shutdown, supportsRandomAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPStorageFactory

public CPStorageFactory()
Method Detail

newPersistentFile

StorageFile newPersistentFile(java.lang.String path)
Construct a persistent StorageFile from a path name.

Specified by:
newPersistentFile in class BaseStorageFactory
Parameters:
path - The path name of the file
Returns:
A corresponding StorageFile object

newPersistentFile

StorageFile newPersistentFile(java.lang.String directoryName,
                              java.lang.String fileName)
Construct a StorageFile from a directory and file name.

Specified by:
newPersistentFile in class BaseStorageFactory
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

StorageFile newPersistentFile(StorageFile directoryName,
                              java.lang.String fileName)
Construct a StorageFile from a directory and file name.

Specified by:
newPersistentFile in class BaseStorageFactory
Parameters:
directoryName - The directory part of the path name.
fileName - The name of the file within the directory.
Returns:
A corresponding StorageFile object

doInit

void doInit()
      throws java.io.IOException
Specified by:
doInit in class BaseStorageFactory
Throws:
java.io.IOException

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.