Package liquibase.command
Class CommandResultsBuilder
java.lang.Object
liquibase.command.CommandResultsBuilder
Because
CommandResults is immutable, this class is used to build up the results during CommandStep.run(CommandResultsBuilder).-
Method Summary
Modifier and TypeMethodDescriptionAdds a key/value pair to the command results.addResult(CommandResultDefinition<T> definition, T value) Sets the value for a knownCommandResultDefinitionto the command results.commandFailed(String message, int exitCode) commandFailed(String message, int exitCode, boolean expected) Return theCommandScopethe results are being built for.Returns theOutputStreamfor output for the command.Allows any step of the pipeline to access any of the results.
-
Method Details
-
getCommandScope
Return theCommandScopethe results are being built for. -
getOutputStream
Returns theOutputStreamfor output for the command.- See Also:
-
addResult
Adds a key/value pair to the command results. -
getResult
Allows any step of the pipeline to access any of the results. -
addResult
Sets the value for a knownCommandResultDefinitionto the command results. -
commandFailed
-
commandFailed
-