Class OpenOptions

java.lang.Object
liquibase.resource.OpenOptions

public class OpenOptions extends Object
Defines the options for opening Resources in Liquibase.
  • Constructor Details

    • OpenOptions

      public OpenOptions()
      Use default options of truncate = true, createIfNeeded = true;
  • Method Details

    • isTruncate

      public boolean isTruncate()
      Should an existing file be truncated when opened. Both this and isAppend() are automatically kept in sync with each other.
    • setTruncate

      public OpenOptions setTruncate(boolean truncate)
    • isAppend

      public boolean isAppend()
      Should an existing file be appended to when opened. Both this and isTruncate() are automatically kept in sync with each other.
    • setAppend

      public OpenOptions setAppend(boolean append)
    • isCreateIfNeeded

      public boolean isCreateIfNeeded()
      If true, create the resource if it does not exist. If false, do not create the resource.
    • setCreateIfNeeded

      public OpenOptions setCreateIfNeeded(boolean createIfNeeded)