Class MigrationUtil
- java.lang.Object
-
- org.openmetadata.service.migration.utils.v110.MigrationUtil
-
public class MigrationUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<MigrationDAO.ServerMigrationSQLTable>addInListIfToBeExecuted(String version, Set<String> lookUp, List<String> queries)static MigrationDAO.ServerMigrationSQLTablebuildServerMigrationTable(String version, String statement)static TestSuitecopy(TestSuite entity, CreateEntity request, String updatedBy)static voiddataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam)static TestSuitegetTestSuite(CollectionDAO dao, CreateTestSuite create, String user)static voidperformSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version)static <T extends EntityInterface>
voidreadAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam)static voidtestSuitesMigration(CollectionDAO collectionDAO)static <T extends EntityInterface>
voidupdateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)static <T extends EntityInterface>
voidupdateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)static voidupdateFQNHashTagUsage(CollectionDAO collectionDAO)
-
-
-
Method Detail
-
updateFQNHashForEntity
public static <T extends EntityInterface> void updateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)
-
updateFQNHashForEntityWithName
public static <T extends EntityInterface> void updateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)
-
readAndProcessEntity
public static <T extends EntityInterface> void readAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam)
-
buildServerMigrationTable
public static MigrationDAO.ServerMigrationSQLTable buildServerMigrationTable(String version, String statement)
-
addInListIfToBeExecuted
public static List<MigrationDAO.ServerMigrationSQLTable> addInListIfToBeExecuted(String version, Set<String> lookUp, List<String> queries)
-
dataMigrationFQNHashing
public static void dataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam)
-
updateFQNHashTagUsage
public static void updateFQNHashTagUsage(CollectionDAO collectionDAO)
-
performSqlExecutionAndUpdate
public static void performSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version)
-
getTestSuite
public static TestSuite getTestSuite(CollectionDAO dao, CreateTestSuite create, String user)
-
copy
public static TestSuite copy(TestSuite entity, CreateEntity request, String updatedBy)
-
testSuitesMigration
public static void testSuitesMigration(CollectionDAO collectionDAO)
-
-