org.apache.jackrabbit.core.persistence.pool
Class OraclePersistenceManager

java.lang.Object
  extended by org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
      extended by org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
          extended by org.apache.jackrabbit.core.persistence.pool.OraclePersistenceManager
All Implemented Interfaces:
CachingPersistenceManager, IterablePersistenceManager, PersistenceManager, DatabaseAware
Direct Known Subclasses:
Oracle9PersistenceManager

public class OraclePersistenceManager
extends BundleDbPersistenceManager

Extends the BundleDbPersistenceManager by Oracle specific code.

Configuration:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore
 
Field Summary
protected  String tableSpace
          the Oracle table space to use
 
Fields inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
binding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, 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
 
Constructor Summary
OraclePersistenceManager()
          Creates a new oracle persistence manager
 
Method Summary
protected  CheckSchemaOperation createCheckSchemaOperation()
          This method is called from BundleDbPersistenceManager.init(PMContext) after the BundleDbPersistenceManager.createConnectionHelper(DataSource) method, and returns a default CheckSchemaOperation.
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 NGKDbNameIndex.
 String getTableSpace()
          Returns the configured Oracle table space.
 void init(PMContext context)
          Initializes the persistence manager.
 void setTableSpace(String tableSpace)
          Sets the Oracle table space.
 
Methods inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
buildSQLStatements, checkBundleConsistency, checkConsistency, close, createBlobStore, createDBBlobStore, createLocalFSBlobStore, createParams, destroy, destroyBundle, existsReferencesTo, getAllNodeIds, 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, 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
 

Field Detail

tableSpace

protected String tableSpace
the Oracle table space to use

Constructor Detail

OraclePersistenceManager

public OraclePersistenceManager()
Creates a new oracle persistence manager

Method Detail

getTableSpace

public String getTableSpace()
Returns the configured Oracle table space.

Returns:
the configured Oracle table space.

setTableSpace

public void setTableSpace(String tableSpace)
Sets the Oracle table space.

Parameters:
tableSpace - the Oracle table space.

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 interface PersistenceManager
Overrides:
init in class BundleDbPersistenceManager
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 class BundleDbPersistenceManager
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 the 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.

Overrides:
createConnectionHelper in class BundleDbPersistenceManager
Parameters:
dataSrc - the DataSource of this persistence manager
Returns:
a ConnectionHelper
Throws:
Exception - on error

createCheckSchemaOperation

protected CheckSchemaOperation createCheckSchemaOperation()
This method is called from BundleDbPersistenceManager.init(PMContext) after the BundleDbPersistenceManager.createConnectionHelper(DataSource) method, and returns a default CheckSchemaOperation. Subclasses can overrride this implementation to get a customized implementation.

Overrides:
createCheckSchemaOperation in class BundleDbPersistenceManager
Returns:
a new CheckSchemaOperation instance


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.