Class DerbyFileSystem

  • All Implemented Interfaces:
    FileSystem, DatabaseAware

    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:

    • url: the database url of the form "jdbc:derby:[db];[attributes]"
    • schemaObjectPrefix: prefix to be prepended to schema objects
    • driver: the FQN name of the JDBC driver class (default: "org.apache.derby.jdbc.EmbeddedDriver")
    • schema: type of schema to be used (default: "derby")
    • user: the database user (default: null)
    • password: the user's password (default: null)
    • shutdownOnClose: if true (the default) the database is shutdown when the last connection is closed; set this to false when using a standalone database
    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 Detail

      • shutdownOnClose

        protected boolean shutdownOnClose
        Flag indicating whether this derby database should be shutdown on close.
    • Constructor Detail

      • DerbyFileSystem

        public DerbyFileSystem()
        Creates a new DerbyFileSystem instance.