Class DB2Database
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<DB2Connection>
migratedb.v1.core.internal.database.db2.DB2Database
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<DB2Connection>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection -
Constructor Summary
ConstructorsConstructorDescriptionDB2Database(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected DB2ConnectiondoGetConnection(Connection connection) Retrieves a MigrateDB Connection for this JDBC connection.protected Stringfinal voidEnsure MigrateDB supports this version of this database.getRawCreateScript(Table<?, ?> table, boolean baseline) getSelectStatement(Table<?, ?> table) booleanbooleanbooleanMethods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
Constructor Details
-
DB2Database
-
-
Method Details
-
doGetConnection
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<DB2Connection>
-
ensureSupported
public final void ensureSupported()Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database. -
getRawCreateScript
-
getSelectStatement
- Specified by:
getSelectStatementin interfaceDatabase<DB2Connection>- Overrides:
getSelectStatementin classBaseDatabase<DB2Connection>
-
doGetCurrentUser
- Overrides:
doGetCurrentUserin classBaseDatabase<DB2Connection>- 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.
-
useSingleConnection
public boolean useSingleConnection()- Specified by:
useSingleConnectionin interfaceDatabase<DB2Connection>- Overrides:
useSingleConnectionin classBaseDatabase<DB2Connection>- Returns:
- Whether to use a single connection for both schema history table management and applying migrations.
-