org.apache.jackrabbit.core.persistence.db
Class DerbyPersistenceManager

java.lang.Object
  extended by org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
      extended by org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
          extended by org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager
              extended by org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
All Implemented Interfaces:
PersistenceManager, DatabaseAware

Deprecated. Please migrate to a bundle persistence manager (JCR-2802)

@Deprecated
public class DerbyPersistenceManager
extends SimpleDbPersistenceManager

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:

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 Summary
protected  boolean shutdownOnClose
          Deprecated. Flag indicating whether this derby database should be shutdown on close.
 
Fields inherited from class org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager
driver, password, url, user
 
Fields inherited from class org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
autoReconnect, blobDeleteSQL, blobFS, blobInsertSQL, blobSelectExistSQL, blobSelectSQL, blobStore, blobUpdateSQL, con, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectExistSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, nodeStateDeleteSQL, nodeStateInsertSQL, nodeStateSelectExistSQL, nodeStateSelectSQL, nodeStateUpdateSQL, propertyStateDeleteSQL, propertyStateInsertSQL, propertyStateSelectExistSQL, propertyStateSelectSQL, propertyStateUpdateSQL, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SLEEP_BEFORE_RECONNECT
 
Constructor Summary
DerbyPersistenceManager()
          Deprecated. Creates a new SimpleDbPersistenceManager instance.
 
Method Summary
protected  void closeConnection(Connection connection)
          Deprecated. Closes the given connection and shuts down the embedded Derby database if shutdownOnClose is set to true.
 boolean getShutdownOnClose()
          Deprecated.  
 void setShutdownOnClose(boolean shutdownOnClose)
          Deprecated.  
 
Methods inherited from class org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager
getConnection, getDriver, getPassword, getUrl, getUser, setConnectionFactory, setDriver, setPassword, setUrl, setUser
 
Methods inherited from class org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
buildSQLStatements, checkSchema, close, closeResultSet, closeStatement, createSchemaSql, destroy, destroy, destroy, executeStmt, exists, exists, existsReferencesTo, getSchema, getSchemaDDL, getSchemaObjectPrefix, init, initConnection, initPreparedStatements, isExternalBLOBs, isSchemaCheckEnabled, load, load, loadReferencesTo, logException, prepareSchemaObjectPrefix, reestablishConnection, resetStatement, setExternalBLOBs, setExternalBLOBs, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, store, store, store, store
 
Methods inherited from class org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
checkConsistency, createNew, createNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Method Detail

getShutdownOnClose

public boolean getShutdownOnClose()
Deprecated. 

setShutdownOnClose

public void setShutdownOnClose(boolean shutdownOnClose)
Deprecated. 

closeConnection

protected void closeConnection(Connection connection)
                        throws SQLException
Deprecated. 
Closes the given connection and shuts down the embedded Derby database if shutdownOnClose is set to true.

Overrides:
closeConnection in class DatabasePersistenceManager
Parameters:
connection - database connection
Throws:
SQLException - if an error occurs
See Also:
DatabasePersistenceManager.closeConnection(Connection)


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