Class LiquibaseFactory
java.lang.Object
org.qubership.atp.dataset.db.migration.LiquibaseFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionliquibase.LiquibaseCreates liquibase facade for target changelog file.liquibase.LiquibaseCreates liquibase facade for target changelog file, with custom resource accessor (ClassLoader).
-
Constructor Details
-
LiquibaseFactory
-
-
Method Details
-
create
public liquibase.Liquibase create(String pathToChangeLog) throws SQLException, liquibase.exception.LiquibaseException Creates liquibase facade for target changelog file.- Parameters:
pathToChangeLog- like 'install.xml'- Returns:
- Liquibase facade
- Throws:
SQLException- if connection can not be acquiredliquibase.exception.LiquibaseException- if db implementation not found
-
create
public liquibase.Liquibase create(String pathToChangeLog, liquibase.resource.ResourceAccessor resourceAccessor) throws SQLException, liquibase.exception.LiquibaseException Creates liquibase facade for target changelog file, with custom resource accessor (ClassLoader).- Parameters:
pathToChangeLog- path to xml file with changelogsresourceAccessor- custom class loader- Throws:
SQLExceptionliquibase.exception.LiquibaseException
-