Package liquibase

Class Contexts

java.lang.Object
liquibase.Contexts

public class Contexts extends Object
Wrapper for list of contexts.

Contexts in Liquibase are expressions you can add to changesets to control which will be executed in any particular migration run. Any string can be used for the context name and they are checked case-insensitively.

See Also:
  • Constructor Details

    • Contexts

      public Contexts()
    • Contexts

      public Contexts(String... contexts)
    • Contexts

      public Contexts(String contexts)
    • Contexts

      public Contexts(Collection<String> contexts)
  • Method Details

    • add

      public boolean add(String context)
    • remove

      public boolean remove(String context)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()
    • getContexts

      public Set<String> getContexts()