Top Description Fields Constructors Methods
liquibase.command

public Class CommandResults

extends Object
Class Inheritance
Imports
java.util.Collections, .SortedMap, .TreeMap

The results of CommandScope#execute().

Field Summary

Modifier and TypeField and Description
private final CommandScope
private final SortedMap<String, Object>

Constructor Summary

AccessConstructor and Description
protected
CommandResults(SortedMap<String, Object> resultValues, CommandScope commandScope)

Method Summary

Modifier and TypeMethod and Description
public CommandScope
getCommandScope()

The CommandScope that was executed to produce this result.

public <DataType> DataType
getResult(CommandResultDefinition<DataType> definition)

Return the value for the given CommandResultDefinition, or the default value if not set.

public Object
getResult(String key)

Return the result value for the given key.

public SortedMap<String, Object>
getResults()

Returns all the results for this command.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commandScopeback to summary
private final CommandScope commandScope
resultValuesback to summary
private final SortedMap<String, Object> resultValues

Constructor Detail

CommandResultsback to summary
protected CommandResults(SortedMap<String, Object> resultValues, CommandScope commandScope)

Method Detail

getCommandScopeback to summary
public CommandScope getCommandScope()

The CommandScope that was executed to produce this result.

getResultback to summary
public <DataType> DataType getResult(CommandResultDefinition<DataType> definition)

Return the value for the given CommandResultDefinition, or the default value if not set.

getResultback to summary
public Object getResult(String key)

Return the result value for the given key.

getResultsback to summary
public SortedMap<String, Object> getResults()

Returns all the results for this command.