Package liquibase.command
Class CommandResult
- java.lang.Object
-
- liquibase.command.CommandResult
-
- Direct Known Subclasses:
SnapshotCommand.SnapshotCommandResult
public class CommandResult extends Object
Deprecated.Used by the oldLiquibaseCommand
style of command setup.Holds results of aLiquibaseCommand
execution, including a message and whether the command succeeded or not.
-
-
Constructor Summary
Constructors Constructor Description CommandResult()
Deprecated.Creates new CommandResult with succeeded=true and message="Successful"CommandResult(String message)
Deprecated.Creates new CommandResult with the given message and succeeded=trueCommandResult(String message, boolean succeeded)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
print()
Deprecated.Return a string version of the result.
-
-
-
Field Detail
-
message
public String message
Deprecated.
-
succeeded
public boolean succeeded
Deprecated.
-
-
Constructor Detail
-
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 Detail
-
print
public String print() throws LiquibaseException
Deprecated.Return a string version of the result. Default implementation returnsmessage
but subclasses can return string versions of stored objects like Snapshots etc.- Throws:
LiquibaseException
-
-