Package liquibase.command
Class CommandBuilder
- java.lang.Object
-
- liquibase.command.CommandBuilder
-
public class CommandBuilder extends Object
Builder for configuringCommandStep
settings, such asCommandArgumentDefinition
s andCommandResultDefinition
s
-
-
Constructor Summary
Constructors Constructor Description CommandBuilder(String[]... commandNames)
Creates a builder for the given command name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <DataType> CommandArgumentDefinition.Building<DataType>
addArgument(CommandArgumentDefinition<DataType> example)
Uses an existingCommandArgumentDefinition
as template<DataType> CommandArgumentDefinition.Building<DataType>
argument(String name, Class<DataType> type)
Starts the building of a newCommandArgumentDefinition
.<DataType> CommandArgumentDefinition.Building<DataType>
argument(CommonArgumentNames argument, Class<DataType> type)
Starts the building of a newCommandArgumentDefinition
.<DataType> CommandResultDefinition.Building<DataType>
result(String name, Class<DataType> type)
Starts the building of a newCommandResultDefinition
.
-
-
-
Constructor Detail
-
CommandBuilder
public CommandBuilder(String[]... commandNames)
Creates a builder for the given command name
-
-
Method Detail
-
argument
public <DataType> CommandArgumentDefinition.Building<DataType> argument(String name, Class<DataType> type)
Starts the building of a newCommandArgumentDefinition
.
-
argument
public <DataType> CommandArgumentDefinition.Building<DataType> argument(CommonArgumentNames argument, Class<DataType> type)
Starts the building of a newCommandArgumentDefinition
.
-
addArgument
public <DataType> CommandArgumentDefinition.Building<DataType> addArgument(CommandArgumentDefinition<DataType> example)
Uses an existingCommandArgumentDefinition
as template
-
result
public <DataType> CommandResultDefinition.Building<DataType> result(String name, Class<DataType> type)
Starts the building of a newCommandResultDefinition
.
-
-