|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager
org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager
org.apache.jackrabbit.core.persistence.bundle.Oracle9PersistenceManager
public class Oracle9PersistenceManager
OracleLegacyPersistenceManager
provides support for Oracle jdbc
drivers prior to version 10 which require special handling of BLOB data.
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="crx"/>
password
" value="crx"/>
schema
" value="oracle"/>
schemaObjectPrefix
" value="${wsp.name}_"/>
errorHandling
" value=""/>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
---|
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore |
Field Summary |
---|
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 |
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager |
---|
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX |
Constructor Summary | |
---|---|
Oracle9PersistenceManager()
|
Method Summary | |
---|---|
protected BundleDbPersistenceManager.CloseableBLOBStore |
createDBBlobStore(PMContext context)
Creates a blob store that uses the database. |
protected Blob |
createTemporaryBlob(InputStream in)
Creates a temporary oracle.sql.BLOB instance via reflection and spools the contents of the specified stream. |
protected void |
freeTemporaryBlob(Object blob)
Frees a temporary oracle.sql.BLOB instance via reflection. |
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. Retrieve theoracle.sql.BLOB class via reflection, and
initialize the values for the DURATION_SESSION and
MODE_READWRITE constants defined there. |
void |
store(NodeReferences refs)
This method uses shared PreparedStatements , which must
be used strictly sequentially. |
protected void |
storeBundle(NodePropBundle bundle)
Stores a bundle to the underlying system. |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager |
---|
checkTablesWithUser, createDbNameIndex, prepareSchemaObjectPrefix |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
---|
checkSchema, checkTablesExist, close, closeResultSet, closeStatement, closeStream, createBlobStore, 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, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Oracle9PersistenceManager()
Method Detail |
---|
public void init(PMContext context) throws Exception
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.
Retrieve theoracle.sql.BLOB
class via reflection, and
initialize the values for the DURATION_SESSION
and
MODE_READWRITE
constants defined there.
init
in interface PersistenceManager
init
in class OraclePersistenceManager
context
- persistence manager context
Exception
- if the persistence manager intialization failedoracle.sql.BLOB#DURATION_SESSION
,
oracle.sql.BLOB#MODE_READWRITE
protected BundleDbPersistenceManager.CloseableBLOBStore createDBBlobStore(PMContext context) throws Exception
BundleDbPersistenceManager
BundleDbPersistenceManager.useDbBlobStore()
returns true
.
createDBBlobStore
in class BundleDbPersistenceManager
context
- the persistence manager context
Exception
- if an error occurs.protected void storeBundle(NodePropBundle bundle) throws ItemStateException
BundleDbPersistenceManager
storeBundle
in class BundleDbPersistenceManager
bundle
- the bundle to store
ItemStateException
- if an error while storing occurs.public void store(NodeReferences refs) throws ItemStateException
BundleDbPersistenceManager
PreparedStatements
, which must
be used strictly sequentially. Because this method synchronizes on the
persistence manager instance, there is no need to synchronize on the
shared statement. If the method would not be sychronized, the shared
statement must be synchronized.
store
in class BundleDbPersistenceManager
refs
- the node references to store.
ItemStateException
- if an error while storing occurs.AbstractPersistenceManager.store(NodeReferences)
protected Blob createTemporaryBlob(InputStream in) throws Exception
Exception
protected void freeTemporaryBlob(Object blob) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |