Class SynapseDatabaseType
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabaseType
migratedb.v1.core.internal.database.sqlserver.SQLServerDatabaseType
migratedb.v1.core.internal.database.sqlserver.synapse.SynapseDatabaseType
- All Implemented Interfaces:
DatabaseType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDatabase<?>createDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) Initializes the Database used by this Database Type.getName()intWhen identifying database types, the priority with which this type will be used.booleanhandlesDatabaseProductNameAndVersion(String databaseProductName, String databaseProductVersion, Connection connection) Check if this database type handles the connection product name and version.Methods inherited from class migratedb.v1.core.internal.database.sqlserver.SQLServerDatabaseType
createParser, getNullTypeMethods inherited from class migratedb.v1.core.internal.database.base.BaseDatabaseType
alterConnectionAsNeeded, createDatabase, createExecutionStrategy, createSqlScriptExecutorFactory, createSqlScriptFactory, createTransactionalExecutionTemplate, getSelectVersionOutput, toString
-
Constructor Details
-
SynapseDatabaseType
public SynapseDatabaseType()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceDatabaseType- Overrides:
getNamein classSQLServerDatabaseType- Returns:
- The human-readable name for this database.
-
getPriority
public int getPriority()Description copied from class:BaseDatabaseTypeWhen identifying database types, the priority with which this type will be used. High numbers indicate that this type will be used in preference to others.- Specified by:
getPriorityin interfaceDatabaseType- Overrides:
getPriorityin classBaseDatabaseType
-
handlesDatabaseProductNameAndVersion
public boolean handlesDatabaseProductNameAndVersion(String databaseProductName, String databaseProductVersion, Connection connection) Description copied from interface:DatabaseTypeCheck if this database type handles the connection product name and version. This allows more fine-grained control over which DatabaseType handles which connection. MigrateDB will use the first DatabaseType that returns true for this method.- Specified by:
handlesDatabaseProductNameAndVersionin interfaceDatabaseType- Overrides:
handlesDatabaseProductNameAndVersionin classSQLServerDatabaseType- Parameters:
databaseProductName- The product name returned by the database.databaseProductVersion- The product version returned by the database.connection- The connection used to connect to the database.- Returns:
trueif this handles the product name and version,falseif not.
-
createDatabase
public Database<?> createDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) Description copied from interface:DatabaseTypeInitializes the Database used by this Database Type.- Specified by:
createDatabasein interfaceDatabaseType- Overrides:
createDatabasein classSQLServerDatabaseType- Parameters:
configuration- The MigrateDB configuration.jdbcConnectionFactory- The current connection factory.- Returns:
- The Database.
-