Top Fields Constructors Methods
liquibase.change.core

public Class DeleteDataChange

extends AbstractModifyDataChange
Class Inheritance
Annotations
@DatabaseChange
name:delete
description:Deletes data from an existing table
priority:1
appliesTo:table
Imports
liquibase.change.ChangeMetaData, .ColumnConfig, .DatabaseChange, liquibase.database.Database, liquibase.parser.core.ParsedNode, .ParsedNodeException, liquibase.resource.ResourceAccessor, liquibase.statement.SqlStatement, liquibase.statement.core.DeleteStatement

Field Summary

Inherited from liquibase.change.core.AbstractModifyDataChange:
catalogNameschemaNametableNamewherewhereParams

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public SqlStatement[]
generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

public String
getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed.

public String
Inherited from liquibase.change.core.AbstractModifyDataChange:
addWhereParamgetCatalogNamegetSchemaNamegetTableNamegetWheregetWhereClausegetWhereParamsremoveWhereParamsetCatalogNamesetSchemaNamesetTableNamesetWheresetWhereClause

Constructor Detail

DeleteDataChangeback to summary
public DeleteDataChange()

Method Detail

customLoadLogicback to summary
protected void customLoadLogic(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException

Overrides liquibase.change.AbstractChange.customLoadLogic.

Annotations
@Override
generateStatementsback to summary
public SqlStatement[] generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Doc from liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

NOTE: This method may be called multiple times throughout the changelog execution process and may be called in documentation generation and other integration points as well.

If this method reads from the current database state or uses any other logic that will be affected by whether previous changeSets have ran or not, you must return true from generateStatementsVolatile.
Annotations
@Override
getConfirmationMessageback to summary
public String getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Doc from liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed. Should include relevant configuration settings to make it as helpful as possible. This method may be called outside the changelog execution process, such as in documentation generation.

Annotations
@Override
getSerializedObjectNamespaceback to summary
public String getSerializedObjectNamespace()

Overrides liquibase.change.AbstractChange.getSerializedObjectNamespace.

Implements liquibase.serializer.LiquibaseSerializable.getSerializedObjectNamespace.

Annotations
@Override