public class DatabaseList extends Object
Constructor and Description |
---|
DatabaseList() |
Modifier and Type | Method and Description |
---|---|
static boolean |
definitionMatches(Collection<String> definition,
Database database,
boolean returnValueIfEmptyList) |
static boolean |
definitionMatches(Collection<String> definition,
String databaseShortName,
boolean returnValueIfEmptyList)
Same logic as
definitionMatches(String, liquibase.database.Database, boolean) but with a collection of definitions rather than a comma separated list. |
static boolean |
definitionMatches(String definition,
Database database,
boolean returnValueIfEmpty) |
static boolean |
definitionMatches(String definition,
String databaseShortName,
boolean returnValueIfEmpty)
Compares a given database to a database definition string.
|
static Set<String> |
toDbmsSet(String dbmsList) |
static void |
validateDefinitions(Collection<String> definitions,
ValidationErrors vErrors)
This method will validate if a set of definitions/dbms are valid supported DBs.
|
static void |
validateDefinitions(String definition,
ValidationErrors vErrors)
This method will validate whether a dbms is valid and match with supported database, if it doesn't then
will add a validation error for it.
|
public static boolean definitionMatches(String definition, String databaseShortName, boolean returnValueIfEmpty)
public static boolean definitionMatches(String definition, Database database, boolean returnValueIfEmpty)
public static boolean definitionMatches(Collection<String> definition, String databaseShortName, boolean returnValueIfEmptyList)
definitionMatches(String, liquibase.database.Database, boolean)
but with a collection of definitions rather than a comma separated list.public static boolean definitionMatches(Collection<String> definition, Database database, boolean returnValueIfEmptyList)
public static void validateDefinitions(String definition, ValidationErrors vErrors)
definition
- vErrors
- public static void validateDefinitions(Collection<String> definitions, ValidationErrors vErrors)
definitions
- vErrors
- Copyright © 2023 Liquibase.org. All rights reserved.