Class MSSqlPersistenceManager
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
-
- org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
-
- org.apache.jackrabbit.core.persistence.pool.MSSqlPersistenceManager
-
- All Implemented Interfaces:
CacheAccessListener
,CachingPersistenceManager
,ConsistencyChecker
,IterablePersistenceManager
,PersistenceManager
,DatabaseAware
public class MSSqlPersistenceManager extends BundleDbPersistenceManager
Extends theBundleDbPersistenceManager
by MS-SQL specific code.Configuration:
- <param name="
bundleCacheSize
" value="8"/> - <param name="
consistencyCheck
" value="false"/> - <param name="
minBlobSize
" value="16384"/> - <param name="
driver
" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> - <param name="
url
" value=""/> - <param name="
user
" value=""/> - <param name="
password
" value=""/> - <param name="
schema
" value="mssql"/> - <param name="
schemaObjectPrefix
" value=""/> - <param name="
errorHandling
" value=""/> - <param name="
tableSpace
" value=""/>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore
-
-
Field Summary
Fields Modifier and Type Field Description protected String
tableSpace
the MS SQL table space to use-
Fields inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
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
-
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX
-
Fields inherited from interface org.apache.jackrabbit.core.cache.CacheAccessListener
ACCESS_INTERVAL
-
-
Constructor Summary
Constructors Constructor Description MSSqlPersistenceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckSchemaOperation
createCheckSchemaOperation()
This method is called fromBundleDbPersistenceManager.init(PMContext)
after theBundleDbPersistenceManager.createConnectionHelper(DataSource)
method, and returns a defaultCheckSchemaOperation
.String
getTableSpace()
Returns the configured MS SQL table space.void
setTableSpace(String tableSpace)
Sets the MS SQL table space.-
Methods inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
buildSQLStatements, close, createBlobStore, createConnectionHelper, createDBBlobStore, createDbNameIndex, createLocalFSBlobStore, createParams, destroy, destroyBundle, existsReferencesTo, getAllNodeIds, getAllNodeInfos, getBlobStore, getBlockOnConnectionLoss, getConsistencyCheck, getConsistencyFix, getDatabaseType, getDataSourceName, getDriver, getErrorHandling, getKey, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getStorageModel, getUrl, getUser, init, 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, cacheAccessed, check, checkConsistency, createNew, createNew, disposeCache, evictBundle, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize, setEventChannel
-
-
-
-
Field Detail
-
tableSpace
protected String tableSpace
the MS SQL table space to use
-
-
Method Detail
-
createCheckSchemaOperation
protected CheckSchemaOperation createCheckSchemaOperation()
This method is called fromBundleDbPersistenceManager.init(PMContext)
after theBundleDbPersistenceManager.createConnectionHelper(DataSource)
method, and returns a defaultCheckSchemaOperation
. Subclasses can overrride this implementation to get a customized implementation.- Overrides:
createCheckSchemaOperation
in classBundleDbPersistenceManager
- Returns:
- a new
CheckSchemaOperation
instance
-
getTableSpace
public String getTableSpace()
Returns the configured MS SQL table space.- Returns:
- the configured MS SQL table space.
-
setTableSpace
public void setTableSpace(String tableSpace)
Sets the MS SQL table space.- Parameters:
tableSpace
- the MS SQL table space.
-
-