org.apache.jackrabbit.core.persistence.bundle
Class OraclePersistenceManager
java.lang.Object
org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager
org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager
- All Implemented Interfaces:
- CachingPersistenceManager, PersistenceManager
- Direct Known Subclasses:
- Oracle9PersistenceManager
public class OraclePersistenceManager
- extends BundleDbPersistenceManager
Extends the BundleDbPersistenceManager
by Oracle specific code.
Configuration:
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
binding, blobStore, bundleDelete, bundleInsert, bundleSelect, bundleUpdate, con, consistencyCheck, consistencyFix, driver, errorHandling, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDelete, nodeReferenceInsert, nodeReferenceSelect, nodeReferenceUpdate, password, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SM_BINARY_KEYS, SM_LONGLONG_KEYS, url, user |
Method Summary |
protected boolean |
checkTablesWithUser()
Indicates if the username should be included when retrieving the tables
during BundleDbPersistenceManager.checkTablesExist() . |
protected DbNameIndex |
createDbNameIndex()
Retruns a new instance of a NGKDbNameIndex. |
void |
init(PMContext context)
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. |
protected void |
prepareSchemaObjectPrefix()
Since Oracle only supports table names up to 30 characters in
length illegal characters are simply replaced with "_" rather than
escaping them with "_x0000_". |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
checkSchema, checkTablesExist, close, closeResultSet, closeStatement, closeStream, createBlobStore, createDBBlobStore, createLocalFSBlobStore, destroy, destroyBundle, exists, existsBundle, getConsistencyCheck, getConsistencyFix, getDriver, getErrorHandling, getExternalBLOBs, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getStorageModel, getUrl, getUser, isExternalBLOBs, load, loadBundle, logException, resetStatement, setConsistencyCheck, setConsistencyFix, setDriver, setErrorHandling, setExternalBLOBs, setKey, setMinBlobSize, setPassword, setSchema, 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, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize |
OraclePersistenceManager
public OraclePersistenceManager()
- Creates a new oracle persistence manager
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 intialization failed
createDbNameIndex
protected DbNameIndex createDbNameIndex()
throws SQLException
- Retruns 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.
checkTablesWithUser
protected boolean checkTablesWithUser()
- Indicates if the username should be included when retrieving the tables
during
BundleDbPersistenceManager.checkTablesExist()
.
Please note that this currently only needs to be changed for oracle based
persistence managers.
- Overrides:
checkTablesWithUser
in class BundleDbPersistenceManager
- Returns:
true
prepareSchemaObjectPrefix
protected void prepareSchemaObjectPrefix()
throws Exception
- Since Oracle only supports table names up to 30 characters in
length illegal characters are simply replaced with "_" rather than
escaping them with "_x0000_".
- Overrides:
prepareSchemaObjectPrefix
in class BundleDbPersistenceManager
- Throws:
Exception
- if an error occurs
Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.