Class DB2Database

java.lang.Object
org.flywaydb.core.internal.database.base.Database<DB2Connection>
org.flywaydb.database.db2.DB2Database
All Implemented Interfaces:
Closeable, AutoCloseable

public class DB2Database extends org.flywaydb.core.internal.database.base.Database<DB2Connection>
  • Field Summary

    Fields inherited from class org.flywaydb.core.internal.database.base.Database

    configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection, statementInterceptor
  • Constructor Summary

    Constructors
    Constructor
    Description
    DB2Database(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 Type
    Method
    Description
    boolean
     
    protected DB2Connection
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected DB2Connection doGetConnection(Connection connection)
      Specified by:
      doGetConnection in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • ensureSupported

      public void ensureSupported(org.flywaydb.core.api.configuration.Configuration configuration)
      Specified by:
      ensureSupported in class org.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 class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • getSelectStatement

      public String getSelectStatement(org.flywaydb.core.internal.database.base.Table table)
      Overrides:
      getSelectStatement in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • doGetCurrentUser

      protected String doGetCurrentUser() throws SQLException
      Overrides:
      doGetCurrentUser in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
      Throws:
      SQLException
    • supportsDdlTransactions

      public boolean supportsDdlTransactions()
      Specified by:
      supportsDdlTransactions in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • getBooleanTrue

      public String getBooleanTrue()
      Specified by:
      getBooleanTrue in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • getBooleanFalse

      public String getBooleanFalse()
      Specified by:
      getBooleanFalse in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • catalogIsSchema

      public boolean catalogIsSchema()
      Specified by:
      catalogIsSchema in class org.flywaydb.core.internal.database.base.Database<DB2Connection>
    • useSingleConnection

      public boolean useSingleConnection()
      Overrides:
      useSingleConnection in class org.flywaydb.core.internal.database.base.Database<DB2Connection>