Class FirebirdDatabase
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<FirebirdConnection>
migratedb.v1.core.internal.database.firebird.FirebirdDatabase
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<FirebirdConnection>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection -
Constructor Summary
ConstructorsConstructorDescriptionFirebirdDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) Creates a new FirebirdDatabase instance with this JdbcTemplate. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected FirebirdConnectiondoGetConnection(Connection connection) Retrieves a MigrateDB Connection for this JDBC connection.protected StringQuotes this identifier for use in SQL queries.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, doGetCatalog, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
Constructor Details
-
FirebirdDatabase
Creates a new FirebirdDatabase instance with this JdbcTemplate.- Parameters:
configuration- The MigrateDB configuration.
-
-
Method Details
-
doGetConnection
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<FirebirdConnection>
-
ensureSupported
public void ensureSupported()Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database. -
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.
-
doQuote
Description copied from class:BaseDatabaseQuotes this identifier for use in SQL queries.- Overrides:
doQuotein classBaseDatabase<FirebirdConnection>
-
getEscapedQuote
- Overrides:
getEscapedQuotein classBaseDatabase<FirebirdConnection>
-
catalogIsSchema
public boolean catalogIsSchema()- Returns:
trueif this database uses a catalog to represent a schema, orfalseif a schema is simply a schema.
-
getRawCreateScript
-
doGetCurrentUser
- Overrides:
doGetCurrentUserin classBaseDatabase<FirebirdConnection>- Throws:
SQLException
-
useSingleConnection
public boolean useSingleConnection()- Specified by:
useSingleConnectionin interfaceDatabase<FirebirdConnection>- Overrides:
useSingleConnectionin classBaseDatabase<FirebirdConnection>- Returns:
- Whether to use a single connection for both schema history table management and applying migrations.
-