public class AmetysPersistenceManager extends BundleDbPersistenceManager
PersistenceManager
.
This implementation is only a wrapper to an actual BundleDbPersistenceManager
, depending on the config parameter.BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore
Modifier and Type | Field and Description |
---|---|
private boolean |
_useDefault |
private String |
_workspace |
private BundleDbPersistenceManager |
_wrappedPM |
static String |
CONFIG_PM_DATASOURCE
Config parameter's name referencing the datasource to use.
|
static String |
CONFIG_USE_DEFAULT
Config parameter's name to use default Jackrabbit behaviour.
|
binding, 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, user
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX
ACCESS_INTERVAL
Constructor and Description |
---|
AmetysPersistenceManager()
Constructor.
|
buildSQLStatements, createBlobStore, createCheckSchemaOperation, createConnectionHelper, createDBBlobStore, createDbNameIndex, createLocalFSBlobStore, createParams, destroyBundle, getBlobStore, getBlockOnConnectionLoss, getConsistencyCheck, getConsistencyFix, getDatabaseType, getDataSourceName, getDriver, getErrorHandling, getKey, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getStorageModel, getUrl, getUser, isExternalBLOBs, isSchemaCheckEnabled, loadBundle, setDatabaseType, setDataSourceName, setSchema, setSchemaCheckEnabled, store, storeBundle, toString, useDbBlobStore, useLocalFsBlobStore
buildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, cacheAccessed, check, disposeCache, evictBundle, getBundleCacheSize, getNsIndex, onExternalUpdate
public static final String CONFIG_USE_DEFAULT
public static final String CONFIG_PM_DATASOURCE
private BundleDbPersistenceManager _wrappedPM
private boolean _useDefault
private String _workspace
public AmetysPersistenceManager()
public void setWorkspace(String workspace)
workspace
- the JCR workspace.public void setUrl(String newUrl)
setUrl
in class BundleDbPersistenceManager
public void setUser(String unused)
setUser
in class BundleDbPersistenceManager
public void setPassword(String unused)
setPassword
in class BundleDbPersistenceManager
public void setDriver(String unused)
setDriver
in class BundleDbPersistenceManager
public void init(PMContext ctx) throws Exception
init
in interface PersistenceManager
init
in class BundleDbPersistenceManager
Exception
public void close() throws Exception
close
in interface PersistenceManager
close
in class BundleDbPersistenceManager
Exception
public NodeState createNew(NodeId id)
createNew
in interface PersistenceManager
createNew
in class AbstractBundlePersistenceManager
public PropertyState createNew(PropertyId id)
createNew
in interface PersistenceManager
createNew
in class AbstractBundlePersistenceManager
public NodeState load(NodeId id) throws NoSuchItemStateException, ItemStateException
load
in interface PersistenceManager
load
in class AbstractBundlePersistenceManager
NoSuchItemStateException
ItemStateException
public PropertyState load(PropertyId id) throws NoSuchItemStateException, ItemStateException
load
in interface PersistenceManager
load
in class AbstractBundlePersistenceManager
NoSuchItemStateException
ItemStateException
public NodeReferences loadReferencesTo(NodeId id) throws NoSuchItemStateException, ItemStateException
loadReferencesTo
in interface PersistenceManager
loadReferencesTo
in class BundleDbPersistenceManager
NoSuchItemStateException
ItemStateException
public boolean exists(NodeId id) throws ItemStateException
exists
in interface PersistenceManager
exists
in class AbstractBundlePersistenceManager
ItemStateException
public boolean exists(PropertyId id) throws ItemStateException
exists
in interface PersistenceManager
exists
in class AbstractBundlePersistenceManager
ItemStateException
public boolean existsReferencesTo(NodeId targetId) throws ItemStateException
existsReferencesTo
in interface PersistenceManager
existsReferencesTo
in class BundleDbPersistenceManager
ItemStateException
public void store(ChangeLog changeLog) throws ItemStateException
store
in interface PersistenceManager
store
in class BundleDbPersistenceManager
ItemStateException
public void checkConsistency(String[] uuids, boolean recursive, boolean fix)
checkConsistency
in interface PersistenceManager
checkConsistency
in class AbstractBundlePersistenceManager
public List<NodeId> getAllNodeIds(NodeId bigger, int maxCount) throws ItemStateException, RepositoryException
getAllNodeIds
in interface IterablePersistenceManager
getAllNodeIds
in class BundleDbPersistenceManager
ItemStateException
RepositoryException
public void destroy(NodeReferences refs) throws ItemStateException
destroy
in class BundleDbPersistenceManager
ItemStateException
public Map<NodeId,NodeInfo> getAllNodeInfos(NodeId bigger, int maxCount) throws ItemStateException
getAllNodeInfos
in interface IterablePersistenceManager
getAllNodeInfos
in class BundleDbPersistenceManager
ItemStateException
public void setBlockOnConnectionLoss(String block)
setBlockOnConnectionLoss
in class BundleDbPersistenceManager
public void setBundleCacheSize(String bundleCacheSize)
setBundleCacheSize
in class AbstractBundlePersistenceManager
public void setConnectionFactory(ConnectionFactory connectionFactory)
setConnectionFactory
in interface DatabaseAware
setConnectionFactory
in class BundleDbPersistenceManager
public void setConsistencyCheck(String check)
setConsistencyCheck
in class BundleDbPersistenceManager
public void setConsistencyFix(String fix)
setConsistencyFix
in class BundleDbPersistenceManager
public void setErrorHandling(String errHandling)
setErrorHandling
in class BundleDbPersistenceManager
public void setEventChannel(UpdateEventChannel eventChannel)
setEventChannel
in interface ConsistencyChecker
setEventChannel
in class AbstractBundlePersistenceManager
public void setExternalBLOBs(boolean externalBlobs)
setExternalBLOBs
in class BundleDbPersistenceManager
public void setMinBlobSize(String minBlobSize)
setMinBlobSize
in class BundleDbPersistenceManager
public void setSchemaObjectPrefix(String schemaPrefix)
setSchemaObjectPrefix
in class BundleDbPersistenceManager