Package liquibase.command
Class CommandResults
- java.lang.Object
-
- liquibase.command.CommandResults
-
public class CommandResults extends Object
The results ofCommandScope.execute()
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommandResults(SortedMap<String,Object> resultValues, CommandScope commandScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandScope
getCommandScope()
TheCommandScope
that was executed to produce this result.Object
getResult(String key)
Return the result value for the given key.<DataType> DataType
getResult(CommandResultDefinition<DataType> definition)
Return the value for the givenCommandResultDefinition
, or the default value if not set.SortedMap<String,Object>
getResults()
Returns all the results for this command.
-
-
-
Constructor Detail
-
CommandResults
protected CommandResults(SortedMap<String,Object> resultValues, CommandScope commandScope)
-
-
Method Detail
-
getCommandScope
public CommandScope getCommandScope()
TheCommandScope
that was executed to produce this result.
-
getResult
public <DataType> DataType getResult(CommandResultDefinition<DataType> definition)
Return the value for the givenCommandResultDefinition
, or the default value if not set.
-
-