Top Inners Fields Constructors Methods
liquibase.command.core

public Class SnapshotCommand

extends AbstractCommand<SnapshotCommand.SnapshotCommandResult>
Class Inheritance
Imports
liquibase.CatalogAndSchema, liquibase.command.*, liquibase.database.Database, liquibase.exception.LiquibaseException, liquibase.serializer.SnapshotSerializerFactory, liquibase.snapshot.DatabaseSnapshot, .SnapshotListener, liquibase.util.StringUtil, java.util.ArrayList, .List, .Locale

Deprecated

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
SnapshotCommand.SnapshotCommandResult

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

Field Summary

Modifier and TypeField and Description
private Database
private CatalogAndSchema[]
private String
private SnapshotListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Database
public String
public String
public SnapshotListener
public SnapshotCommand.SnapshotCommandResult
run()

Implements liquibase.command.LiquibaseCommand.run.

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

Function that performs the actual logic.

public void
public SnapshotCommand
setSchemas(CatalogAndSchema... catalogAndSchema)
References Deprecated SnapshotCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public SnapshotCommand
setSchemas(String... schemas)
References Deprecated SnapshotCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public SnapshotCommand
setSerializerFormat(String serializerFormat)
References Deprecated SnapshotCommand is deprecated or references (maybe indirectly) at least one deprecated element.

public void
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

databaseback to summary
private Database database
schemasback to summary
private CatalogAndSchema[] schemas
serializerFormatback to summary
private String serializerFormat
snapshotListenerback to summary
private SnapshotListener snapshotListener

Constructor Detail

SnapshotCommandback to summary
public SnapshotCommand()

Method Detail

getDatabaseback to summary
public Database getDatabase()
getNameback to summary
public String getName()

Implements liquibase.command.LiquibaseCommand.getName.

Annotations
@Override
getSerializerFormatback to summary
public String getSerializerFormat()
getSnapshotListenerback to summary
public SnapshotListener getSnapshotListener()
runback to summary
public SnapshotCommand.SnapshotCommandResult run() throws Exception

Implements liquibase.command.LiquibaseCommand.run.

Doc from liquibase.command.LiquibaseCommand.run.

References Deprecated

SnapshotCommand.SnapshotCommandResult 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
setDatabaseback to summary
public void setDatabase(Database database)
setSchemasback to summary
public SnapshotCommand setSchemas(CatalogAndSchema... catalogAndSchema)

References Deprecated

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

See corresponding docs for further information.

setSchemasback to summary
public SnapshotCommand setSchemas(String... schemas)

References Deprecated

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

See corresponding docs for further information.

setSerializerFormatback to summary
public SnapshotCommand setSerializerFormat(String serializerFormat)

References Deprecated

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

See corresponding docs for further information.

setSnapshotListenerback to summary
public void setSnapshotListener(SnapshotListener snapshotListener)
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
liquibase.command.core back to summary

public Class SnapshotCommand.SnapshotCommandResult

extends CommandResult
Class Inheritance

References Deprecated

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

See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
public DatabaseSnapshot
Inherited from liquibase.command.CommandResult:
messagesucceeded

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
merge(SnapshotCommand.SnapshotCommandResult resultToMerge)
References Deprecated SnapshotCommand.SnapshotCommandResult is deprecated or references (maybe indirectly) at least one deprecated element.

public String
print()

Overrides liquibase.command.CommandResult.print.

Return a string version of the result.

Field Detail

snapshotback to summary
public DatabaseSnapshot snapshot

Constructor Detail

SnapshotCommandResultback to summary
public SnapshotCommandResult()
SnapshotCommandResultback to summary
public SnapshotCommandResult(DatabaseSnapshot snapshot)

Method Detail

mergeback to summary
public void merge(SnapshotCommand.SnapshotCommandResult resultToMerge)

References Deprecated

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

See corresponding docs for further information.

printback to summary
public String print() throws LiquibaseException

Overrides liquibase.command.CommandResult.print.

Doc from liquibase.command.CommandResult.print.

Return a string version of the result. Default implementation returns message but subclasses can return string versions of stored objects like Snapshots etc.

Annotations
@Override