public class OraclePersistenceManager extends BundleDbPersistenceManager
BundleDbPersistenceManager
by Oracle specific code.
Configuration:
BundleDbPersistenceManager.setExternalBLOBs(boolean)
externalBLOBs}" value="false"/>
bundleCacheSize
" value="8"/>
consistencyCheck
" value="false"/>
minBlobSize
" value="16384"/>
driver
" value="oracle.jdbc.OracleDriverr"/>
url
" value="jdbc:oracle:thin:@127.0.0.1:1521:xe"/>
user
" value=""/>
password
" value=""/>
schema
" value="oracle"/>
schemaObjectPrefix
" value="${wsp.name}_"/>
tableSpace
" value="user"/>
tableSpace
" value="user"/>
errorHandling
" value=""/>
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_TABLESPACE_CLAUSE
The default tablespace clause used when
tablespace or indexTablespace
are not specified. |
protected static String |
INDEX_TABLESPACE_VARIABLE
Name of the replacement variable in the DDL for
indexTablespace . |
protected String |
indexTablespace
The Oracle tablespace to use for indexes
|
protected String |
tablespace
The Oracle tablespace to use for tables
|
protected static String |
TABLESPACE_VARIABLE
Name of the replacement variable in the DDL for
tablespace . |
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 |
---|
OraclePersistenceManager()
Creates a new oracle persistence manager
|
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
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
buildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, cacheAccessed, check, checkConsistency, createNew, createNew, disposeCache, evictBundle, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize, setEventChannel
protected static final String DEFAULT_TABLESPACE_CLAUSE
tablespace
or indexTablespace
are not specified.protected static final String TABLESPACE_VARIABLE
tablespace
.protected static final String INDEX_TABLESPACE_VARIABLE
indexTablespace
.protected String tablespace
protected String indexTablespace
public OraclePersistenceManager()
public String getTablespace()
public void setTablespace(String tablespaceName)
tablespaceName
- the Oracle tablespace for tables.public String getIndexTablespace()
public void setIndexTablespace(String tablespaceName)
tablespaceName
- the Oracle tablespace for indexes.public void init(PMContext context) throws Exception
BundleDbPersistenceManager
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.
init
in interface PersistenceManager
init
in class BundleDbPersistenceManager
context
- persistence manager contextException
- if the persistence manager initialization failedprotected DbNameIndex createDbNameIndex() throws SQLException
createDbNameIndex
in class BundleDbPersistenceManager
SQLException
- if an SQL error occurs.protected ConnectionHelper createConnectionHelper(DataSource dataSrc) throws Exception
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.createConnectionHelper
in class BundleDbPersistenceManager
dataSrc
- the DataSource
of this persistence managerConnectionHelper
Exception
- on errorprotected CheckSchemaOperation createCheckSchemaOperation()
BundleDbPersistenceManager.init(PMContext)
after the
BundleDbPersistenceManager.createConnectionHelper(DataSource)
method, and returns a default CheckSchemaOperation
.
Subclasses can overrride this implementation to get a customized implementation.createCheckSchemaOperation
in class BundleDbPersistenceManager
CheckSchemaOperation
instanceCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.