Class DerbyPersistenceManager

  • All Implemented Interfaces:
    PersistenceManager, DatabaseAware

    @Deprecated
    public class DerbyPersistenceManager
    extends SimpleDbPersistenceManager
    Deprecated.
    Please migrate to a bundle persistence manager (JCR-2802)
    DerbyPersistenceManager is a JDBC-based PersistenceManager for Jackrabbit that persists ItemState and NodeReferences objects in an embedded or standalone Derby database using a simple custom serialization format and a very basic non-normalized database schema (in essence tables with one 'key' and one 'data' column).

    It is configured through the following properties:

    • url: the database url of the form "jdbc:derby:[//host:port/][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"); Use "org.apache.derby.jdbc.ClientDriver" when using a standalone database
    • schema: type of schema to be used (default: "derby")
    • user: the database user (default: null)
    • password: the user's password (default: null)
    • externalBLOBs: if true (the default) BINARY values (BLOBs) are stored in the local file system; if false BLOBs are stored in the database
    • 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 SimpleDbPersistenceManager.

    The following is a fragment from a sample configuration:

       <PersistenceManager class="org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager">
           <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
           <param name="schemaObjectPrefix" value="${wsp.name}_"/>
           <param name="externalBLOBs" value="false"/>
       </PersistenceManager>
     
    • Field Detail

      • shutdownOnClose

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

      • DerbyPersistenceManager

        public DerbyPersistenceManager()
        Deprecated.
        Creates a new SimpleDbPersistenceManager instance.