org.apache.jackrabbit.core.fs.db
Class DerbyFileSystem

java.lang.Object
  extended byorg.apache.jackrabbit.core.fs.db.DbFileSystem
      extended byorg.apache.jackrabbit.core.fs.db.DerbyFileSystem
All Implemented Interfaces:
FileSystem

public class DerbyFileSystem
extends DbFileSystem

DerbyFileSystem is a JDBC-based FileSystem implementation for Jackrabbit that persists file system entries in an embedded Derby database.

It is configured through the following properties:

See also DbFileSystem.

The following is a fragment from a sample configuration:

   <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
       <param name="url" value="jdbc:derby:${rep.home}/db;create=true"/>
       <param name="schemaObjectPrefix" value="rep_"/>
  </FileSystem>
 


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.fs.db.DbFileSystem
con, copyFilesStmt, copyFileStmt, deleteFileStmt, deleteFolderStmt, driver, INITIAL_BUFFER_SIZE, initialized, insertFileStmt, insertFolderStmt, password, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, selectChildCountStmt, selectDataStmt, selectExistStmt, selectFileAndFolderNamesStmt, selectFileExistStmt, selectFileNamesStmt, selectFolderExistStmt, selectFolderNamesStmt, selectLastModifiedStmt, selectLengthStmt, updateDataStmt, updateLastModifiedStmt, url, user
 
Fields inherited from interface org.apache.jackrabbit.core.fs.FileSystem
SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
DerbyFileSystem()
          Creates a new DerbyFileSystem instance.
 
Method Summary
 void close()
          Close the file system. After calling this method, the file system is no longer accessible.
 
Methods inherited from class org.apache.jackrabbit.core.fs.db.DbFileSystem
checkSchema, closeResultSet, closeStatement, closeStream, copy, copyDeepFolder, copyFile, createDeepFolder, createFolder, deleteFile, deleteFolder, equals, exists, getDriver, getInputStream, getOutputStream, getPassword, getRandomAccessOutputStream, getSchema, getSchemaObjectPrefix, getUrl, getUser, hasChildren, hashCode, init, isFile, isFolder, lastModified, length, list, listFiles, listFolders, move, prepareSchemaObjectPrefix, resetStatement, setDriver, setPassword, setSchema, setSchemaObjectPrefix, setUrl, setUser, touch, verifyRoodExists
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerbyFileSystem

public DerbyFileSystem()
Creates a new DerbyFileSystem instance.

Method Detail

close

public void close()
           throws FileSystemException
Close the file system. After calling this method, the file system is no longer accessible.

Specified by:
close in interface FileSystem
Overrides:
close in class DbFileSystem
Throws:
FileSystemException


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.