Package de.xima.fc.liquibase
Class LiquibaseMigrationUtils
- java.lang.Object
-
- de.xima.fc.liquibase.LiquibaseMigrationUtils
-
public class LiquibaseMigrationUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_PRODUCTIVE
static String
CONTEXT_TEST
static String
MASTER_XML
-
Constructor Summary
Constructors Constructor Description LiquibaseMigrationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
areChangeSetsUnrun(String... ids)
static boolean
areChangeSetsUnrun(String file, String context, String... ids)
Deprecated.static boolean
areChangeSetsUnrun(String file, liquibase.Contexts context, String... ids)
static boolean
dropDatabase(String file)
static List<liquibase.changelog.ChangeSet>
getUnrunChangesets()
static List<liquibase.changelog.ChangeSet>
getUnrunChangesets(String file, String context)
Deprecated.static List<liquibase.changelog.ChangeSet>
getUnrunChangesets(String file, liquibase.Contexts context)
static FCMessage
invokeLiquibaseProzess(ELiquibaseCmd lbCmd)
static FCMessage
invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, String context)
Deprecated.static FCMessage
invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context)
static boolean
isUpToDate()
static boolean
updateDatabase(String file, String context)
Deprecated.static boolean
updateDatabase(String file, liquibase.Contexts context)
-
-
-
Field Detail
-
MASTER_XML
public static final String MASTER_XML
- See Also:
- Constant Field Values
-
CONTEXT_PRODUCTIVE
public static final String CONTEXT_PRODUCTIVE
- See Also:
- Constant Field Values
-
CONTEXT_TEST
public static final String CONTEXT_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
invokeLiquibaseProzess
public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
getUnrunChangesets
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets() throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
areChangeSetsUnrun
public static boolean areChangeSetsUnrun(String... ids) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
getUnrunChangesets
@Deprecated public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, String context) throws liquibase.exception.DatabaseException
Deprecated.
-
getUnrunChangesets
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
areChangeSetsUnrun
@Deprecated public static boolean areChangeSetsUnrun(String file, String context, String... ids) throws liquibase.exception.DatabaseException
Deprecated.
-
areChangeSetsUnrun
public static boolean areChangeSetsUnrun(String file, liquibase.Contexts context, String... ids) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
updateDatabase
@Deprecated public static boolean updateDatabase(String file, String context) throws liquibase.exception.DatabaseException
Deprecated.
-
updateDatabase
public static boolean updateDatabase(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
dropDatabase
public static boolean dropDatabase(String file) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
invokeLiquibaseProzess
@Deprecated public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, String context) throws liquibase.exception.DatabaseException
Deprecated.- Parameters:
lbCmd
-ELiquibaseCmd
to performfile
-String
path to the liquibase changeset-filecontext
-String
the liquibase context-name- Returns:
FCMessage
as result of the execution- Throws:
liquibase.exception.DatabaseException
- on errors
-
invokeLiquibaseProzess
public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
- Throws:
liquibase.exception.DatabaseException
-
isUpToDate
public static boolean isUpToDate()
-
-