Package liquibase

Class 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:
    contexts in documentation
    • Constructor Detail

      • Contexts

        public Contexts()
      • Contexts

        public Contexts​(String... contexts)
      • Contexts

        public Contexts​(String contexts)
    • Method Detail

      • add

        public boolean add​(String context)
      • remove

        public boolean remove​(String context)
      • isEmpty

        public boolean isEmpty()
      • getContexts

        public Set<String> getContexts()