Top Inners Fields Constructors Methods
liquibase.command.core

public Class InternalHistoryCommandStep

extends AbstractCommandStep
Class Inheritance
Imports
liquibase.Scope, liquibase.changelog.ChangeLogHistoryService, .ChangeLogHistoryServiceFactory, .RanChangeSet, liquibase.command.*, liquibase.database.Database, liquibase.exception.LiquibaseException, liquibase.logging.mdc.MdcKey, .MdcObject, liquibase.logging.mdc.customobjects.History, liquibase.util.TableOutput, java.io.PrintWriter, java.text.DateFormat, java.util.ArrayList, .Arrays, .List, .Objects, java.util.stream.Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
pack-priv static class
public static class
pack-priv static interface
public static class

Field Summary

Modifier and TypeField and Description
public static final String[]
public static final CommandArgumentDefinition<Database>
public static final CommandArgumentDefinition<DateFormat>
public static final CommandResultDefinition<InternalHistoryCommandStep.DeploymentHistory>
public static final CommandArgumentDefinition<HistoryFormat>
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 void
run(CommandResultsBuilder resultsBuilder)

Implements liquibase.command.CommandStep.run.

Performs the business logic.

Inherited from liquibase.command.AbstractCommandStep:
getOrderprovidedDependenciesrequiredDependenciesvalidate

Field Detail

COMMAND_NAMEback to summary
public static final String[] COMMAND_NAME
DATABASE_ARGback to summary
public static final CommandArgumentDefinition<Database> DATABASE_ARG
DATE_FORMAT_ARGback to summary
public static final CommandArgumentDefinition<DateFormat> DATE_FORMAT_ARG
DEPLOYMENTS_RESULTback to summary
public static final CommandResultDefinition<InternalHistoryCommandStep.DeploymentHistory> DEPLOYMENTS_RESULT
FORMAT_ARGback to summary
public static final CommandArgumentDefinition<HistoryFormat> FORMAT_ARG

Constructor Detail

InternalHistoryCommandStepback to summary
public InternalHistoryCommandStep()

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
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
liquibase.command.core back to summary

public Class InternalHistoryCommandStep.DeploymentHistory

extends Object
Class Inheritance
  • java.lang.Object
  • liquibase.command.core.InternalHistoryCommandStep.DeploymentHistory

Field Summary

Modifier and TypeField and Description
private final List<InternalHistoryCommandStep.ReportPrinter>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

deploymentsback to summary
private final List<InternalHistoryCommandStep.ReportPrinter> deployments

Constructor Detail

DeploymentHistoryback to summary
public DeploymentHistory()

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
liquibase.command.core back to summary

pack-priv Class InternalHistoryCommandStep.DeploymentPrinterFactory

extends Object
Class Inheritance
  • java.lang.Object
  • liquibase.command.core.InternalHistoryCommandStep.DeploymentPrinterFactory

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static InternalHistoryCommandStep.ReportPrinter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DeploymentPrinterFactoryback to summary
pack-priv DeploymentPrinterFactory()

Method Detail

createback to summary
pack-priv static InternalHistoryCommandStep.ReportPrinter create(CommandScope scope)
liquibase.command.core back to summary

public Class InternalHistoryCommandStep.LegacyDeploymentDetails

extends Object
implements ReportPrinter
Class Inheritance
  • java.lang.Object
  • liquibase.command.core.InternalHistoryCommandStep.LegacyDeploymentDetails
All Implemented Interfaces
liquibase.command.core.InternalHistoryCommandStep.ReportPrinter

Field Summary

Modifier and TypeField and Description
pack-priv List<RanChangeSet>
private final CommandScope

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changeSetsback to summary
pack-priv List<RanChangeSet> changeSets
commandScopeback to summary
private final CommandScope commandScope

Constructor Detail

LegacyDeploymentDetailsback to summary
public LegacyDeploymentDetails(CommandScope commandScope)

Method Detail

addChangeSetback to summary
public void addChangeSet(RanChangeSet changeSet)

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.addChangeSet.

Annotations
@Override
getDeploymentIdback to summary
public String getDeploymentId()

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.getDeploymentId.

Annotations
@Override
printReportback to summary
public void printReport(PrintWriter output)

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.printReport.

Annotations
@Override
liquibase.command.core back to summary

pack-priv Interface InternalHistoryCommandStep.ReportPrinter

Known Direct Implementers
liquibase.command.core.InternalHistoryCommandStep.LegacyDeploymentDetails, liquibase.command.core.InternalHistoryCommandStep.TabularDeploymentDetails

Method Summary

Modifier and TypeMethod and Description
public void
public String
public void

Method Detail

addChangeSetback to summary
public void addChangeSet(RanChangeSet changeSet)
getDeploymentIdback to summary
public String getDeploymentId()
printReportback to summary
public void printReport(PrintWriter output) throws LiquibaseException
liquibase.command.core back to summary

public Class InternalHistoryCommandStep.TabularDeploymentDetails

extends Object
implements ReportPrinter
Class Inheritance
  • java.lang.Object
  • liquibase.command.core.InternalHistoryCommandStep.TabularDeploymentDetails
All Implemented Interfaces
liquibase.command.core.InternalHistoryCommandStep.ReportPrinter

Field Summary

Modifier and TypeField and Description
private final List<RanChangeSet>
private final CommandScope
private static final List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private DateFormat
public String
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changeSetsback to summary
private final List<RanChangeSet> changeSets
commandScopeback to summary
private final CommandScope commandScope
HEADERSback to summary
private static final List<String> HEADERS

Constructor Detail

TabularDeploymentDetailsback to summary
public TabularDeploymentDetails(CommandScope commandScope)

Method Detail

addChangeSetback to summary
public void addChangeSet(RanChangeSet changeSet)

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.addChangeSet.

Annotations
@Override
getDateFormatback to summary
private DateFormat getDateFormat()
getDeploymentIdback to summary
public String getDeploymentId()

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.getDeploymentId.

Annotations
@Override
printReportback to summary
public void printReport(PrintWriter output) throws LiquibaseException

Implements liquibase.command.core.InternalHistoryCommandStep.ReportPrinter.printReport.

Annotations
@Override