Class CommandResult

java.lang.Object
liquibase.command.CommandResult
Direct Known Subclasses:
SnapshotCommand.SnapshotCommandResult

public class CommandResult extends Object
Deprecated.
Used by the old LiquibaseCommand style of command setup.
Holds results of a LiquibaseCommand execution, including a message and whether the command succeeded or not.
  • Field Details

    • message

      public String message
      Deprecated.
    • succeeded

      public boolean succeeded
      Deprecated.
  • Constructor Details

    • CommandResult

      public CommandResult()
      Deprecated.
      Creates new CommandResult with succeeded=true and message="Successful"
    • CommandResult

      public CommandResult(String message)
      Deprecated.
      Creates new CommandResult with the given message and succeeded=true
    • CommandResult

      public CommandResult(String message, boolean succeeded)
      Deprecated.
  • Method Details

    • print

      public String print() throws LiquibaseException
      Deprecated.
      Return a string version of the result. Default implementation returns message but subclasses can return string versions of stored objects like Snapshots etc.
      Throws:
      LiquibaseException