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 knownCommandResultDefinition
to the command results.commandFailed
(String message, int exitCode) commandFailed
(String message, int exitCode, boolean expected) Return theCommandScope
the results are being built for.Returns theOutputStream
for output for the command.Allows any step of the pipeline to access any of the results.
-
Method Details
-
getCommandScope
Return theCommandScope
the results are being built for. -
getOutputStream
Returns theOutputStream
for 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 knownCommandResultDefinition
to the command results. -
commandFailed
-
commandFailed
-