|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager
org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager
public class PostgreSQLPersistenceManager
Extends the BundleDbPersistenceManager by PostgreSQL specific code.
bundleCacheSize" value="8"/>
consistencyCheck" value="false"/>
minBlobSize" value="16384"/>
driver" value="org.postgresql.Driver"/>
url" value=""/>
user" value=""/>
password" value=""/>
schema" value="postgresql"/>
schemaObjectPrefix" value=""/>
errorHandling" value=""/>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
|---|
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore |
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
|---|
binding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, bundleSelectAllIdsFromSQL, bundleSelectAllIdsSQL, bundleSelectSQL, bundleUpdateSQL, connectionManager, consistencyCheck, consistencyFix, driver, errorHandling, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, password, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SM_BINARY_KEYS, SM_LONGLONG_KEYS, url, user |
| Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager |
|---|
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX |
| Constructor Summary | |
|---|---|
PostgreSQLPersistenceManager()
|
|
| Method Summary | |
|---|---|
protected DbNameIndex |
createDbNameIndex()
Returns a new instance of a DbNameIndex. |
int |
getStorageModel()
returns the storage model |
void |
init(PMContext context)
Initializes the persistence manager. |
protected NodePropBundle |
loadBundle(NodeId id)
Loads a bundle from the underlying system. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PostgreSQLPersistenceManager()
| Method Detail |
|---|
public void init(PMContext context)
throws java.lang.Exception
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.
init in interface PersistenceManagerinit in class BundleDbPersistenceManagercontext - persistence manager context
java.lang.Exception - if the persistence manager initialization failed
protected DbNameIndex createDbNameIndex()
throws java.sql.SQLException
createDbNameIndex in class BundleDbPersistenceManagerjava.sql.SQLException - if an SQL error occurs.public int getStorageModel()
getStorageModel in class BundleDbPersistenceManager
protected NodePropBundle loadBundle(NodeId id)
throws ItemStateException
BundleDbPersistenceManager
loadBundle in class BundleDbPersistenceManagerid - the node id of the bundle
null if the bundle does not
exist.
ItemStateException - if an error while loading occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||