org.apache.jackrabbit.core.persistence.pool
Class PostgreSQLPersistenceManager
java.lang.Object
org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager
- All Implemented Interfaces:
- CachingPersistenceManager, IterablePersistenceManager, PersistenceManager, DatabaseAware
public class PostgreSQLPersistenceManager
- extends BundleDbPersistenceManager
Extends the BundleDbPersistenceManager
by PostgreSQL specific code.
Configuration:
Fields inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager |
binding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, bundleSelectAllIdsFromSQL, bundleSelectAllIdsSQL, bundleSelectSQL, bundleUpdateSQL, conHelper, consistencyCheck, consistencyFix, databaseType, dataSourceName, driver, errorHandling, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, password, schemaObjectPrefix, SM_BINARY_KEYS, SM_LONGLONG_KEYS, url, user |
Methods inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager |
buildSQLStatements, checkBundleConsistency, checkConsistency, close, createBlobStore, createCheckSchemaOperation, createConnectionHelper, createDBBlobStore, createLocalFSBlobStore, createParams, destroy, destroyBundle, existsReferencesTo, getAllNodeIds, getBlobStore, getBlockOnConnectionLoss, getConsistencyCheck, getConsistencyFix, getDatabaseType, getDataSourceName, getDriver, getErrorHandling, getKey, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getUrl, getUser, isExternalBLOBs, isSchemaCheckEnabled, loadBundle, loadReferencesTo, setBlockOnConnectionLoss, setConnectionFactory, setConsistencyCheck, setConsistencyFix, setDatabaseType, setDataSourceName, setDriver, setErrorHandling, setExternalBLOBs, setMinBlobSize, setPassword, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, setUrl, setUser, store, store, storeBundle, toString, useDbBlobStore, useLocalFsBlobStore |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager |
buildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, createNew, createNew, evictBundle, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize |
PostgreSQLPersistenceManager
public PostgreSQLPersistenceManager()
init
public void init(PMContext context)
throws Exception
- Initializes the persistence manager. The persistence manager is
permanently bound to the given context, and any required external
resources are acquired.
An appropriate exception is thrown if the persistence manager
initialization fails for whatever reason. In this case the
state of the persistence manager is undefined and the instance
should be discarded.
Initializes the internal structures of this abstract persistence manager.
- Specified by:
init
in interface PersistenceManager
- Overrides:
init
in class BundleDbPersistenceManager
- Parameters:
context
- persistence manager context
- Throws:
Exception
- if the persistence manager initialization failed
createDbNameIndex
protected DbNameIndex createDbNameIndex()
throws SQLException
- Returns a new instance of a DbNameIndex.
- Overrides:
createDbNameIndex
in class BundleDbPersistenceManager
- Returns:
- a new instance of a DbNameIndex.
- Throws:
SQLException
- if an SQL error occurs.
getStorageModel
public int getStorageModel()
- returns the storage model
- Overrides:
getStorageModel
in class BundleDbPersistenceManager
- Returns:
- the storage model
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.