Top Fields Constructors Methods
liquibase.command.core

public Class DiffCommand

extends AbstractCommand<CommandResult>
Class Inheritance
Known Direct Subclasses
liquibase.command.core.DiffToChangeLogCommand
Imports
liquibase.command.AbstractCommand, .CommandResult, .CommandScope, .CommandValidationErrors, liquibase.command.core.helpers.DbUrlConnectionArgumentsCommandStep, .PreCompareCommandStep, .ReferenceDbUrlConnectionCommandStep, liquibase.database.Database, liquibase.diff.compare.CompareControl, liquibase.diff.output.ObjectChangeFilter, liquibase.snapshot.SnapshotControl, .SnapshotListener, liquibase.structure.DatabaseObject, liquibase.structure.core.DatabaseObjectFactory, liquibase.util.StringUtil, java.io.PrintStream, java.util.Set

Deprecated

Implement commands with liquibase.command.CommandStep and call them with liquibase.command.CommandFactory#getCommandDefinition(String...).

Field Summary

Modifier and TypeField and Description
private CompareControl
private ObjectChangeFilter
private PrintStream
private Database
private SnapshotControl
private SnapshotListener
private Class<? extends DatabaseObject>[]
private Database
private SnapshotControl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CompareControl
public String
public ObjectChangeFilter
public PrintStream
public Database
public SnapshotControl
public SnapshotListener
public Class<? extends DatabaseObject>[]
public Database
public SnapshotControl
public CommandResult
run()

Implements liquibase.command.LiquibaseCommand.run.

References Deprecated CommandResult is deprecated or references (maybe indirectly) at least one deprecated element.

Function that performs the actual logic.

public DiffCommand
setCompareControl(CompareControl compareControl)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setObjectChangeFilter(ObjectChangeFilter objectChangeFilter)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setOutputStream(PrintStream outputStream)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setReferenceDatabase(Database referenceDatabase)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setReferenceSnapshotControl(SnapshotControl referenceSnapshotControl)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setSnapshotListener(SnapshotListener snapshotListener)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setSnapshotTypes(String... snapshotTypes)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setSnapshotTypes(Class<? extends DatabaseObject>... snapshotTypes)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setTargetDatabase(Database targetDatabase)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public DiffCommand
setTargetSnapshotControl(SnapshotControl targetSnapshotControl)
References Deprecated DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public CommandValidationErrors
validate()

Implements liquibase.command.LiquibaseCommand.validate.

References Deprecated CommandValidationErrors is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from liquibase.command.AbstractCommand:
getArgumentsgetPriority

Field Detail

compareControlback to summary
private CompareControl compareControl
objectChangeFilterback to summary
private ObjectChangeFilter objectChangeFilter
outputStreamback to summary
private PrintStream outputStream
referenceDatabaseback to summary
private Database referenceDatabase
referenceSnapshotControlback to summary
private SnapshotControl referenceSnapshotControl
snapshotListenerback to summary
private SnapshotListener snapshotListener
snapshotTypesback to summary
private Class<? extends DatabaseObject>[] snapshotTypes
targetDatabaseback to summary
private Database targetDatabase
targetSnapshotControlback to summary
private SnapshotControl targetSnapshotControl

Constructor Detail

DiffCommandback to summary
public DiffCommand()

Method Detail

getCompareControlback to summary
public CompareControl getCompareControl()
getNameback to summary
public String getName()

Implements liquibase.command.LiquibaseCommand.getName.

Annotations
@Override
getObjectChangeFilterback to summary
public ObjectChangeFilter getObjectChangeFilter()
getOutputStreamback to summary
public PrintStream getOutputStream()
getReferenceDatabaseback to summary
public Database getReferenceDatabase()
getReferenceSnapshotControlback to summary
public SnapshotControl getReferenceSnapshotControl()
getSnapshotListenerback to summary
public SnapshotListener getSnapshotListener()
getSnapshotTypesback to summary
public Class<? extends DatabaseObject>[] getSnapshotTypes()
getTargetDatabaseback to summary
public Database getTargetDatabase()
getTargetSnapshotControlback to summary
public SnapshotControl getTargetSnapshotControl()
runback to summary
public CommandResult run() throws Exception

Implements liquibase.command.LiquibaseCommand.run.

Doc from liquibase.command.LiquibaseCommand.run.

References Deprecated

CommandResult is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Function that performs the actual logic. This should not be called directly by any code, only by CommandFactory#execute(LiquibaseCommand)

Annotations
@Override
setCompareControlback to summary
public DiffCommand setCompareControl(CompareControl compareControl)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setObjectChangeFilterback to summary
public DiffCommand setObjectChangeFilter(ObjectChangeFilter objectChangeFilter)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setOutputStreamback to summary
public DiffCommand setOutputStream(PrintStream outputStream)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setReferenceDatabaseback to summary
public DiffCommand setReferenceDatabase(Database referenceDatabase)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setReferenceSnapshotControlback to summary
public DiffCommand setReferenceSnapshotControl(SnapshotControl referenceSnapshotControl)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setSnapshotListenerback to summary
public DiffCommand setSnapshotListener(SnapshotListener snapshotListener)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setSnapshotTypesback to summary
public DiffCommand setSnapshotTypes(String... snapshotTypes)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setSnapshotTypesback to summary
public DiffCommand setSnapshotTypes(Class<? extends DatabaseObject>... snapshotTypes)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setTargetDatabaseback to summary
public DiffCommand setTargetDatabase(Database targetDatabase)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

setTargetSnapshotControlback to summary
public DiffCommand setTargetSnapshotControl(SnapshotControl targetSnapshotControl)

References Deprecated

DiffCommand is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

validateback to summary
public CommandValidationErrors validate()

Implements liquibase.command.LiquibaseCommand.validate.

References Deprecated

CommandValidationErrors is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@Override