Top Fields Constructors Methods
liquibase.command.core

public Class CalculateChecksumCommandStep

extends AbstractCommandStep
Class Inheritance
Imports
liquibase.ChecksumVersion, .Scope, liquibase.change.CheckSum, liquibase.changelog.ChangeLogHistoryService, .ChangeLogHistoryServiceFactory, .ChangeLogParameters, .ChangeSet, .DatabaseChangeLog, .RanChangeSet, liquibase.command.AbstractCommandStep, .CommandArgumentDefinition, .CommandBuilder, .CommandDefinition, .CommandResultDefinition, .CommandResultsBuilder, .CommandScope, .CommonArgumentNames, liquibase.database.Database, liquibase.exception.LiquibaseException, liquibase.parser.ChangeLogParserFactory, liquibase.resource.ResourceAccessor, liquibase.util.StringUtil, java.util.Collections, .List

Field Summary

Modifier and TypeField and Description
public static final CommandArgumentDefinition<String>
public static final CommandArgumentDefinition<String>
public static final CommandArgumentDefinition<String>
public static final CommandArgumentDefinition<String>
private static final int
private static final int
private static final int
private static final int
public static final CommandArgumentDefinition<String>
public static final CommandResultDefinition<CheckSum>
protected static final String[]
Inherited from liquibase.command.AbstractCommandStep:
coreBundle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String[][]
defineCommandNames()

Implements liquibase.command.CommandStep.defineCommandNames.

Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.

public List<Class<?>>
requiredDependencies()

Overrides liquibase.command.AbstractCommandStep.requiredDependencies.

Implements liquibase.command.CommandStep.requiredDependencies.

Return a list of configured Classes that this command requires to be passed as a dependency.

public void
run(CommandResultsBuilder resultsBuilder)

Implements liquibase.command.CommandStep.run.

Performs the business logic.

private static void
sendMessages(CommandResultsBuilder resultsBuilder, CheckSum checkSum)

private List<String>
validateAndExtractParts(String changeSetIdentifier, String changeLogFile)

private void
validateIdentifierParameters(CommandScope commandScope, String changeSetIdentifier)

Inherited from liquibase.command.AbstractCommandStep:
getOrderprovidedDependenciesvalidate

Field Detail

CHANGELOG_FILE_ARGback to summary
public static final CommandArgumentDefinition<String> CHANGELOG_FILE_ARG
CHANGESET_AUTHOR_ARGback to summary
public static final CommandArgumentDefinition<String> CHANGESET_AUTHOR_ARG
CHANGESET_ID_ARGback to summary
public static final CommandArgumentDefinition<String> CHANGESET_ID_ARG
CHANGESET_IDENTIFIER_ARGback to summary
public static final CommandArgumentDefinition<String> CHANGESET_IDENTIFIER_ARG
CHANGESET_IDENTIFIER_AUTHOR_PARTback to summary
private static final int CHANGESET_IDENTIFIER_AUTHOR_PART
CHANGESET_IDENTIFIER_ID_PARTback to summary
private static final int CHANGESET_IDENTIFIER_ID_PART
CHANGESET_IDENTIFIER_PARTS_LENGTHback to summary
private static final int CHANGESET_IDENTIFIER_PARTS_LENGTH
CHANGESET_IDENTIFIER_PATH_PARTback to summary
private static final int CHANGESET_IDENTIFIER_PATH_PART
CHANGESET_PATH_ARGback to summary
public static final CommandArgumentDefinition<String> CHANGESET_PATH_ARG
CHECKSUM_RESULTback to summary
public static final CommandResultDefinition<CheckSum> CHECKSUM_RESULT
COMMAND_NAMEback to summary
protected static final String[] COMMAND_NAME

Constructor Detail

CalculateChecksumCommandStepback to summary
public CalculateChecksumCommandStep()

Method Detail

adjustCommandDefinitionback to summary
public void adjustCommandDefinition(CommandDefinition commandDefinition)

Overrides liquibase.command.AbstractCommandStep.adjustCommandDefinition.

Implements liquibase.command.CommandStep.adjustCommandDefinition.

Doc from liquibase.command.AbstractCommandStep.adjustCommandDefinition.

Default implementation makes no changes

Annotations
@Override
defineCommandNamesback to summary
public String[][] defineCommandNames()

Implements liquibase.command.CommandStep.defineCommandNames.

Doc from liquibase.command.CommandStep.defineCommandNames.

Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}. If it is a part of `liquibase example init`, this should return {"example", "init"}.

This is used to determine the available command names.

This can return null if this step is not defining a new command but "cross-cutting" existing commands

Annotations
@Override
requiredDependenciesback to summary
public List<Class<?>> requiredDependencies()

Overrides liquibase.command.AbstractCommandStep.requiredDependencies.

Implements liquibase.command.CommandStep.requiredDependencies.

Doc from liquibase.command.CommandStep.requiredDependencies.

Return a list of configured Classes that this command requires to be passed as a dependency.

Returns:List<Class<?>>

list with the required classes types

Annotations
@Override
runback to summary
public void run(CommandResultsBuilder resultsBuilder) throws Exception

Implements liquibase.command.CommandStep.run.

Doc from liquibase.command.CommandStep.run.

Performs the business logic. This method should not be called directly. It is called by the overall pipeline logic in the CommandScope#execute() order.

Annotations
@Override
sendMessagesback to summary
private static void sendMessages(CommandResultsBuilder resultsBuilder, CheckSum checkSum)
validateAndExtractPartsback to summary
private List<String> validateAndExtractParts(String changeSetIdentifier, String changeLogFile) throws LiquibaseException
validateIdentifierParametersback to summary
private void validateIdentifierParameters(CommandScope commandScope, String changeSetIdentifier) throws LiquibaseException