Top Constructors Methods
liquibase.database

public Class DatabaseList

extends Object
Class Inheritance
Imports
liquibase.exception.ValidationErrors, liquibase.util.StringUtil, java.util.Collection, .HashSet, .Set

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
definitionMatches(String definition, String databaseShortName, boolean returnValueIfEmpty)

Compares a given database to a database definition string.

public static boolean
definitionMatches(String definition, Database database, boolean returnValueIfEmpty)

public 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.

public static boolean
definitionMatches(Collection<String> definition, Database database, boolean returnValueIfEmptyList)

public static Set<String>
toDbmsSet(String dbmsList)

private static void
public static void
validateDefinitions(String definition, ValidationErrors vErrors)

This method will validate whether a dbms (optional: comma separated list) is valid and match with supported database, if it doesn't then will add a validation error for it.

public static void
validateDefinitions(Collection<String> definitions, ValidationErrors vErrors)

This method will validate if a set of definitions/dbms are valid supported DBs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DatabaseListback to summary
public DatabaseList()

Method Detail

definitionMatchesback to summary
public static boolean definitionMatches(String definition, String databaseShortName, boolean returnValueIfEmpty)

Compares a given database to a database definition string.

Definition syntax: Comma separated list of database shortNames. Doesn't matter if it includes spaces. Can exclude a database by prepending its name with a '!'. The string "all" will match all databases. The string "none" will match no databases, even if others are listed. If an empty or null definition or null is passed, it will return the passed returnValueIfEmpty value.
definitionMatchesback to summary
public static boolean definitionMatches(String definition, Database database, boolean returnValueIfEmpty)
definitionMatchesback to summary
public 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.

definitionMatchesback to summary
public static boolean definitionMatches(Collection<String> definition, Database database, boolean returnValueIfEmptyList)
toDbmsSetback to summary
public static Set<String> toDbmsSet(String dbmsList)
validateDefinitionback to summary
private static void validateDefinition(String definition, ValidationErrors vErrors)
validateDefinitionsback to summary
public static void validateDefinitions(String definition, ValidationErrors vErrors)

This method will validate whether a dbms (optional: comma separated list) is valid and match with supported database, if it doesn't then will add a validation error for it.

validateDefinitionsback to summary
public static void validateDefinitions(Collection<String> definitions, ValidationErrors vErrors)

This method will validate if a set of definitions/dbms are valid supported DBs.