Class DB2FileSystem

  • All Implemented Interfaces:
    FileSystem, DatabaseAware

    public class DB2FileSystem
    extends DbFileSystem
    DB2FileSystem is a JDBC-based FileSystem implementation for Jackrabbit that persists file system entries in a DB2 database.

    It is configured through the following properties:

    • driver: the FQN name of the JDBC driver class (default: "")
    • schema: type of schema to be used (default: "db2")
    • url: the database url (e.g. "jdbc:db2:[database]")
    • user: the database user
    • password: the user's password
    • schemaObjectPrefix: prefix to be prepended to schema objects
    See also DbFileSystem.

    The following is a fragment from a sample configuration:

       <FileSystem class="org.apache.jackrabbit.core.fs.db.DB2FileSystem">
           <param name="url" value="jdbc:db2:test"/>
           <param name="schemaObjectPrefix" value="rep_"/>
    • Constructor Detail

      • DB2FileSystem

        public DB2FileSystem()
        Creates a new DB2FileSystem instance.
    • Method Detail

      • buildSQLStatements

        protected void buildSQLStatements()
        Builds the SQL statements

        Since DB2 requires parameter markers within the select clause to be explicitly typed using cast(? as type_name) some statements had to be changed accordingly.

        buildSQLStatements in class DatabaseFileSystem