org.apache.jackrabbit.core.journal
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
public class OracleDatabaseJournal
- extends DatabaseJournal
It has the following property in addition to those of the DatabaseJournal:
tableSpace: the Oracle tablespace to use
|
Field Summary |
static java.lang.String |
TABLE_SPACE_VARIABLE
the variable for the Oracle table space |
protected java.lang.String |
tableSpace
the Oracle table space to use |
|
Method Summary |
protected java.lang.String |
createSchemaSQL(java.lang.String sql)
Creates an SQL statement for schema creation by variable substitution. |
java.lang.String |
getTableSpace()
Returns the configured Oracle table space. |
void |
setTableSpace(java.lang.String tableSpace)
Sets the Oracle table space. |
protected boolean |
tableExists(java.sql.DatabaseMetaData metaData,
java.lang.String tableName)
Checks whether the required table(s) exist in the schema. |
| Methods inherited from class org.apache.jackrabbit.core.journal.DatabaseJournal |
append, appending, buildSQLStatements, close, doLock, doUnlock, getConnection, getDriver, getInstanceRevision, getJanitorEnabled, getJanitorFirstRunHourOfDay, getJanitorSleep, getPassword, getReconnectDelayMs, getRecords, getSchema, getSchemaObjectPrefix, getUrl, getUser, init, init, initInstanceRevisionAndJanitor, setDriver, setJanitorEnabled, setJanitorFirstRunHourOfDay, setJanitorSleep, setPassword, setReconnectDelayMs, setSchema, setSchemaObjectPrefix, setUrl, setUser |
| Methods inherited from class org.apache.jackrabbit.core.journal.AbstractJournal |
createProducer, doSync, getConsumer, getId, getNamePathResolver, getProducer, getRepositoryHome, getResolver, getRevision, lockAndSync, register, setRepositoryHome, setRevision, sync, unlock, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TABLE_SPACE_VARIABLE
public static final java.lang.String TABLE_SPACE_VARIABLE
- the variable for the Oracle table space
- See Also:
- Constant Field Values
tableSpace
protected java.lang.String tableSpace
- the Oracle table space to use
OracleDatabaseJournal
public OracleDatabaseJournal()
getTableSpace
public java.lang.String getTableSpace()
- Returns the configured Oracle table space.
- Returns:
- the configured Oracle table space.
setTableSpace
public void setTableSpace(java.lang.String tableSpace)
- Sets the Oracle table space.
- Parameters:
tableSpace - the Oracle table space.
createSchemaSQL
protected java.lang.String createSchemaSQL(java.lang.String sql)
- Creates an SQL statement for schema creation by variable substitution.
- Overrides:
createSchemaSQL in class DatabaseJournal
- Parameters:
sql - a SQL string which may contain variables to substitute
- Returns:
- a valid SQL string
tableExists
protected boolean tableExists(java.sql.DatabaseMetaData metaData,
java.lang.String tableName)
throws java.sql.SQLException
- Checks whether the required table(s) exist in the schema. May be
overridden by subclasses to allow different table names.
- Overrides:
tableExists in class DatabaseJournal
- Parameters:
metaData - database meta data
- Returns:
true if the schema exists
- Throws:
java.sql.SQLException - if an SQL error occurs
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.