Class OraclePersistenceManager
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
-
- org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
-
- org.apache.jackrabbit.core.persistence.pool.OraclePersistenceManager
-
- All Implemented Interfaces:
CacheAccessListener
,CachingPersistenceManager
,ConsistencyChecker
,IterablePersistenceManager
,PersistenceManager
,DatabaseAware
- Direct Known Subclasses:
Oracle9PersistenceManager
public class OraclePersistenceManager extends BundleDbPersistenceManager
Extends theBundleDbPersistenceManager
by Oracle specific code.Configuration:
- <param name="
BundleDbPersistenceManager.setExternalBLOBs(boolean)
externalBLOBs}" value="false"/> - <param name="
bundleCacheSize
" value="8"/> - <param name="
consistencyCheck
" value="false"/> - <param name="
minBlobSize
" value="16384"/> - <param name="
driver
" value="oracle.jdbc.OracleDriverr"/> - <param name="
url
" value="jdbc:oracle:thin:@127.0.0.1:1521:xe"/> - <param name="
user
" value=""/> - <param name="
password
" value=""/> - <param name="
schema
" value="oracle"/> - <param name="
schemaObjectPrefix
" value="${wsp.name}_"/> - <param name="
tableSpace
" value="user"/> - <param name="
tableSpace
" value="user"/> - <param name="
errorHandling
" 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 static String
DEFAULT_TABLESPACE_CLAUSE
The default tablespace clause used whentablespace
orindexTablespace
are not specified.protected static String
INDEX_TABLESPACE_VARIABLE
Name of the replacement variable in the DDL forindexTablespace
.protected String
indexTablespace
The Oracle tablespace to use for indexesprotected String
tablespace
The Oracle tablespace to use for tablesprotected static String
TABLESPACE_VARIABLE
Name of the replacement variable in the DDL fortablespace
.-
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 OraclePersistenceManager()
Creates a new oracle persistence manager
-
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
.protected ConnectionHelper
createConnectionHelper(DataSource dataSrc)
This method is called from theBundleDbPersistenceManager.init(PMContext)
method of this class and returns aConnectionHelper
instance which is assigned to theconHelper
field.protected DbNameIndex
createDbNameIndex()
Returns a new instance of a NGKDbNameIndex.String
getIndexTablespace()
Returns the configured Oracle tablespace for indexes.String
getTablespace()
Returns the configured Oracle tablespace for tables.void
init(PMContext context)
Initializes the persistence manager.void
setIndexTablespace(String tablespaceName)
Sets the Oracle tablespace for indexes.void
setTablespace(String tablespaceName)
Sets the Oracle tablespace for tables.-
Methods inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
buildSQLStatements, close, createBlobStore, createDBBlobStore, createLocalFSBlobStore, createParams, destroy, destroyBundle, existsReferencesTo, getAllNodeIds, getAllNodeInfos, getBlobStore, getBlockOnConnectionLoss, getConsistencyCheck, getConsistencyFix, getDatabaseType, getDataSourceName, getDriver, getErrorHandling, getKey, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getStorageModel, 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, cacheAccessed, check, checkConsistency, createNew, createNew, disposeCache, evictBundle, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize, setEventChannel
-
-
-
-
Field Detail
-
DEFAULT_TABLESPACE_CLAUSE
protected static final String DEFAULT_TABLESPACE_CLAUSE
The default tablespace clause used whentablespace
orindexTablespace
are not specified.- See Also:
- Constant Field Values
-
TABLESPACE_VARIABLE
protected static final String TABLESPACE_VARIABLE
Name of the replacement variable in the DDL fortablespace
.- See Also:
- Constant Field Values
-
INDEX_TABLESPACE_VARIABLE
protected static final String INDEX_TABLESPACE_VARIABLE
Name of the replacement variable in the DDL forindexTablespace
.- See Also:
- Constant Field Values
-
tablespace
protected String tablespace
The Oracle tablespace to use for tables
-
indexTablespace
protected String indexTablespace
The Oracle tablespace to use for indexes
-
-
Method Detail
-
getTablespace
public String getTablespace()
Returns the configured Oracle tablespace for tables.- Returns:
- the configured Oracle tablespace for tables.
-
setTablespace
public void setTablespace(String tablespaceName)
Sets the Oracle tablespace for tables.- Parameters:
tablespaceName
- the Oracle tablespace for tables.
-
getIndexTablespace
public String getIndexTablespace()
Returns the configured Oracle tablespace for indexes.- Returns:
- the configured Oracle tablespace for indexes.
-
setIndexTablespace
public void setIndexTablespace(String tablespaceName)
Sets the Oracle tablespace for indexes.- Parameters:
tablespaceName
- the Oracle tablespace for indexes.
-
init
public void init(PMContext context) throws Exception
Description copied from class:BundleDbPersistenceManager
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 interfacePersistenceManager
- Overrides:
init
in classBundleDbPersistenceManager
- 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 NGKDbNameIndex.- Overrides:
createDbNameIndex
in classBundleDbPersistenceManager
- Returns:
- a new instance of a NGKDbNameIndex.
- Throws:
SQLException
- if an SQL error occurs.
-
createConnectionHelper
protected ConnectionHelper createConnectionHelper(DataSource dataSrc) throws Exception
This method is called from theBundleDbPersistenceManager.init(PMContext)
method of this class and returns aConnectionHelper
instance which is assigned to theconHelper
field. Subclasses may override it to return a specialized connection helper.- Overrides:
createConnectionHelper
in classBundleDbPersistenceManager
- Parameters:
dataSrc
- theDataSource
of this persistence manager- Returns:
- a
ConnectionHelper
- Throws:
Exception
- on error
-
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
-
-