Package org.flywaydb.database.db2
Class DB2Database
java.lang.Object
org.flywaydb.core.internal.database.base.Database<DB2Connection>
org.flywaydb.database.db2.DB2Database
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class org.flywaydb.core.internal.database.base.Database
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection, statementInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionDB2Database
(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected DB2Connection
doGetConnection
(Connection connection) protected String
void
ensureSupported
(org.flywaydb.core.api.configuration.Configuration configuration) getRawCreateScript
(org.flywaydb.core.internal.database.base.Table table, boolean baseline) getSelectStatement
(org.flywaydb.core.internal.database.base.Table table) boolean
boolean
Methods inherited from class org.flywaydb.core.internal.database.base.Database
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, disposeEventConnection, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doQuote, ensureDatabaseIsRecentEnough, ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getConfiguration, getCreateScript, getCurrentUser, getDatabaseHosting, getDatabaseType, getDefaultDelimiter, getDeleteStatement, getEscapedQuote, getEventConnection, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getUpdateStatement, getVersion, hasEventConnection, notifyDatabaseIsNotFormallySupported, quote, recommendFlywayUpgradeIfNecessary, recommendFlywayUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
Constructor Details
-
DB2Database
public DB2Database(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor)
-
-
Method Details
-
doGetConnection
- Specified by:
doGetConnection
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
ensureSupported
public void ensureSupported(org.flywaydb.core.api.configuration.Configuration configuration) - Specified by:
ensureSupported
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
getRawCreateScript
public String getRawCreateScript(org.flywaydb.core.internal.database.base.Table table, boolean baseline) - Specified by:
getRawCreateScript
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
getSelectStatement
- Overrides:
getSelectStatement
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
doGetCurrentUser
- Overrides:
doGetCurrentUser
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
- Throws:
SQLException
-
supportsDdlTransactions
public boolean supportsDdlTransactions()- Specified by:
supportsDdlTransactions
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
getBooleanTrue
- Specified by:
getBooleanTrue
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
getBooleanFalse
- Specified by:
getBooleanFalse
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
catalogIsSchema
public boolean catalogIsSchema()- Specified by:
catalogIsSchema
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-
useSingleConnection
public boolean useSingleConnection()- Overrides:
useSingleConnection
in classorg.flywaydb.core.internal.database.base.Database<DB2Connection>
-