Class OracleDatabase
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<OracleConnection>
migratedb.v1.core.internal.database.oracle.OracleDatabase
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<OracleConnection>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection -
Constructor Summary
ConstructorsConstructorDescriptionOracleDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Stringprotected OracleConnectiondoGetConnection(Connection connection) Retrieves a MigrateDB Connection for this JDBC connection.protected Stringstatic voidIf the TNS_ADMIN environment variable is set, enable tnsnames.ora support for the Oracle JDBC driver.final voidEnsure MigrateDB supports this version of this database.getRawCreateScript(Table<?, ?> table, boolean baseline) booleanbooleanbooleanMethods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsMultiStatementTransactions, unQuote, useSingleConnection
-
Constructor Details
-
OracleDatabase
-
-
Method Details
-
enableTnsnamesOraSupport
public static void enableTnsnamesOraSupport()If the TNS_ADMIN environment variable is set, enable tnsnames.ora support for the Oracle JDBC driver. See TNS ADMIN -
doGetConnection
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<OracleConnection>
-
ensureSupported
public final void ensureSupported()Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database. -
getRawCreateScript
-
supportsEmptyMigrationDescription
public boolean supportsEmptyMigrationDescription()- Specified by:
supportsEmptyMigrationDescriptionin interfaceDatabase<OracleConnection>- Overrides:
supportsEmptyMigrationDescriptionin classBaseDatabase<OracleConnection>
-
doGetCatalog
- Overrides:
doGetCatalogin classBaseDatabase<OracleConnection>- Throws:
SQLException
-
doGetCurrentUser
- Overrides:
doGetCurrentUserin classBaseDatabase<OracleConnection>- Throws:
SQLException
-
supportsDdlTransactions
public boolean supportsDdlTransactions() -
supportsChangingCurrentSchema
public boolean supportsChangingCurrentSchema() -
getBooleanTrue
- Returns:
- The representation of the value
truein a boolean column.
-
getBooleanFalse
- Returns:
- The representation of the value
falsein a boolean column.
-
catalogIsSchema
public boolean catalogIsSchema()- Returns:
trueif this database uses a catalog to represent a schema, orfalseif a schema is simply a schema.
-