Class FirebirdDatabase

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FirebirdDatabase
    extends org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
    • 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
      FirebirdDatabase​(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor)
      Creates a new FirebirdDatabase instance with this JdbcTemplate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean catalogIsSchema()  
      protected FirebirdConnection doGetConnection​(java.sql.Connection connection)  
      protected java.lang.String doGetCurrentUser()  
      java.lang.String doQuote​(java.lang.String identifier)  
      void ensureSupported()  
      java.lang.String getBooleanFalse()  
      java.lang.String getBooleanTrue()  
      java.lang.String getEscapedQuote()  
      java.lang.String getRawCreateScript​(org.flywaydb.core.internal.database.base.Table table, boolean baseline)  
      boolean supportsDdlTransactions()  
      boolean useSingleConnection()  
      • Methods inherited from class org.flywaydb.core.internal.database.base.Database

        cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, ensureDatabaseIsRecentEnough, ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getConfiguration, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getSelectStatement, getVersion, 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 Detail

      • FirebirdDatabase

        public FirebirdDatabase​(org.flywaydb.core.api.configuration.Configuration configuration,
                                org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory,
                                org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor)
        Creates a new FirebirdDatabase instance with this JdbcTemplate.
        Parameters:
        configuration - The Flyway configuration.
    • Method Detail

      • doGetConnection

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

        public void ensureSupported()
        Specified by:
        ensureSupported in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
      • supportsDdlTransactions

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

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

        public java.lang.String getBooleanFalse()
        Specified by:
        getBooleanFalse in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
      • doQuote

        public java.lang.String doQuote​(java.lang.String identifier)
        Overrides:
        doQuote in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
      • getEscapedQuote

        public java.lang.String getEscapedQuote()
        Overrides:
        getEscapedQuote in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
      • catalogIsSchema

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

        public java.lang.String getRawCreateScript​(org.flywaydb.core.internal.database.base.Table table,
                                                   boolean baseline)
        Specified by:
        getRawCreateScript in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
      • doGetCurrentUser

        protected java.lang.String doGetCurrentUser()
                                             throws java.sql.SQLException
        Overrides:
        doGetCurrentUser in class org.flywaydb.core.internal.database.base.Database<FirebirdConnection>
        Throws:
        java.sql.SQLException
      • useSingleConnection

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