Class OracleDatabaseJournal
- java.lang.Object
-
- org.apache.jackrabbit.core.journal.AbstractJournal
-
- org.apache.jackrabbit.core.journal.DatabaseJournal
-
- org.apache.jackrabbit.core.journal.OracleDatabaseJournal
-
- All Implemented Interfaces:
Journal
,DatabaseAware
public class OracleDatabaseJournal extends DatabaseJournal
It has the following property in addition to those of the DatabaseJournal:tablespace
: the tablespace to use for tablesindexTablespace
: the tablespace to use for indexes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.journal.DatabaseJournal
DatabaseJournal.DatabaseRevision, DatabaseJournal.RevisionTableJanitor
-
-
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.journal.DatabaseJournal
cleanRevisionStmtSQL, getLocalRevisionStmtSQL, insertLocalRevisionStmtSQL, insertRevisionStmtSQL, schemaObjectPrefix, selectGlobalStmtSQL, selectMinLocalRevisionStmtSQL, selectRevisionsStmtSQL, updateGlobalStmtSQL, updateLocalRevisionStmtSQL
-
-
Constructor Summary
Constructors Constructor Description OracleDatabaseJournal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckSchemaOperation
createCheckSchemaOperation()
This method is called fromDatabaseJournal.init(String, NamespaceResolver)
after theDatabaseJournal.createConnectionHelper(DataSource)
method, and returns a defaultCheckSchemaOperation
.protected ConnectionHelper
createConnectionHelper(DataSource dataSrc)
This method is called from theDatabaseJournal.init(String, NamespaceResolver)
method of this class and returns aConnectionHelper
instance which is assigned to theconHelper
field.String
getIndexTablespace()
Returns the configured Oracle tablespace for indexes.String
getTablespace()
Returns the configured Oracle tablespace for tables.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.journal.DatabaseJournal
append, appending, buildSQLStatements, close, doLock, doSync, doUnlock, getDatabaseType, getDataSourceName, getDriver, getInstanceRevision, getJanitorEnabled, getJanitorFirstRunHourOfDay, getJanitorSleep, getPassword, getRecords, getRecords, getSchema, getSchemaObjectPrefix, getUrl, getUser, init, init, initInstanceRevisionAndJanitor, isSchemaCheckEnabled, setConnectionFactory, setDatabaseType, setDataSourceName, setDriver, setJanitorEnabled, setJanitorFirstRunHourOfDay, setJanitorSleep, setPassword, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, setUrl, setUser
-
Methods inherited from class org.apache.jackrabbit.core.journal.AbstractJournal
createProducer, doSync, getConsumer, getId, getNamePathResolver, getProducer, getRepositoryHome, getResolver, getRevision, lockAndSync, register, setInternalVersionManager, setRepositoryHome, setRevision, sync, syncAgainOnNewRecords, unlock, unregister
-
-
-
-
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.
-
createConnectionHelper
protected ConnectionHelper createConnectionHelper(DataSource dataSrc) throws Exception
This method is called from theDatabaseJournal.init(String, NamespaceResolver)
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 classDatabaseJournal
- Parameters:
dataSrc
- theDataSource
of this persistence manager- Returns:
- a
ConnectionHelper
- Throws:
Exception
- on error
-
createCheckSchemaOperation
protected CheckSchemaOperation createCheckSchemaOperation()
This method is called fromDatabaseJournal.init(String, NamespaceResolver)
after theDatabaseJournal.createConnectionHelper(DataSource)
method, and returns a defaultCheckSchemaOperation
. Subclasses can override this implementation to get a customized implementation.- Overrides:
createCheckSchemaOperation
in classDatabaseJournal
- Returns:
- a new
CheckSchemaOperation
instance
-
-