public class PostgreSQLPersistenceManager extends BundleDbPersistenceManager
BundleDbPersistenceManager by PostgreSQL specific code.
Configuration:
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=""/>
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStorebinding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, bundleSelectAllBundlesFromSQL, bundleSelectAllBundlesSQL, 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, usercontext, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEXACCESS_INTERVAL| Constructor and Description |
|---|
PostgreSQLPersistenceManager() |
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionHelper |
createConnectionHelper(DataSource dataSrc)
This method is called from the
BundleDbPersistenceManager.init(PMContext) method of this class and returns a
ConnectionHelper instance which is assigned to the conHelper field. |
protected DbNameIndex |
createDbNameIndex()
Returns a new instance of a DbNameIndex.
|
int |
getStorageModel()
returns the storage model
|
void |
init(PMContext context)
Initializes the persistence manager.
|
buildSQLStatements, close, createBlobStore, createCheckSchemaOperation, createDBBlobStore, createLocalFSBlobStore, createParams, destroy, destroyBundle, existsReferencesTo, getAllNodeIds, getAllNodeInfos, 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, useLocalFsBlobStorebuildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, cacheAccessed, check, checkConsistency, createNew, createNew, disposeCache, evictBundle, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize, setEventChannelpublic void init(PMContext context) throws 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 contextException - if the persistence manager initialization failedprotected DbNameIndex createDbNameIndex() throws SQLException
createDbNameIndex in class BundleDbPersistenceManagerSQLException - if an SQL error occurs.protected ConnectionHelper createConnectionHelper(DataSource dataSrc) throws Exception
BundleDbPersistenceManager.init(PMContext) method of this class and returns a
ConnectionHelper instance which is assigned to the conHelper field. Subclasses may
override it to return a specialized connection helper.createConnectionHelper in class BundleDbPersistenceManagerdataSrc - the DataSource of this persistence managerConnectionHelperException - on errorpublic int getStorageModel()
getStorageModel in class BundleDbPersistenceManagerCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.