Package liquibase.command
Class CommandResultDefinition<DataType>
- java.lang.Object
-
- liquibase.command.CommandResultDefinition<DataType>
-
- All Implemented Interfaces:
Comparable<CommandResultDefinition<?>>
public class CommandResultDefinition<DataType> extends Object implements Comparable<CommandResultDefinition<?>>
Defines a known, type-safe result from a specificCommandStep.Because this definition is tied to a specific step, multiple steps in a pipeline can define results of the same name.
- See Also:
for constructing new instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandResultDefinition.Building<DataType>
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommandResultDefinition(String name, Class<DataType> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CommandResultDefinition<?> o)booleanequals(Object o)Class<DataType>getDataType()The datatype of the result.DataTypegetDefaultValue()The default value to use if no value was provided.StringgetDescription()The description of the result.StringgetName()The name of the result.inthashCode()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
The name of the result. Must be camelCase and alphanumeric.
-
getDescription
public String getDescription()
The description of the result. Used in generated help documentation.
-
getDefaultValue
public DataType getDefaultValue()
The default value to use if no value was provided.
-
compareTo
public int compareTo(CommandResultDefinition<?> o)
- Specified by:
compareToin interfaceComparable<DataType>
-
-