liquibase.database
Class DatabaseList
java.lang.Object
liquibase.database.DatabaseList
public class DatabaseList
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseList
public DatabaseList()
definitionMatches
public static boolean definitionMatches(String definition,
Database database,
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.
definitionMatches
public static boolean definitionMatches(Collection<String> definition,
Database database,
boolean returnValueIfEmptyList)
- Same logic as
definitionMatches(String, liquibase.database.Database, boolean)
but with a collection of definitions rather than a comma separated list.
Copyright © 2014 Liquibase.org. All Rights Reserved.