Top Description Methods
org.hibernate.tool.schema.spi

public Interface Cleaner

Known Direct Implementers
org.hibernate.tool.schema.internal.StandardTableCleaner
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.boot.Metadata, org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.mapping.ForeignKey, .Table, java.util.Collection

An object that produces the SQL required to truncate the tables in a schema.
Author
Gavin King
Since
6.2

Method Summary

Modifier and TypeMethod and Description
public String
getSqlAfterString()

A statement to run after ending the process of truncating tables.

public String
getSqlBeforeString()

A statement to run before beginning the process of truncating tables.

public String
getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)

Deprecated as a consequence of Metadata being deprecated.
A statement that disables the given foreign key constraint.
public String
getSqlEnableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)

Deprecated as a consequence of Metadata being deprecated.
A statement that re-enables the given foreign key constraint.
public String[]
getSqlTruncateStrings(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context)

Deprecated as a consequence of Metadata being deprecated.
A statement or statements that truncate the given tables.

Method Detail

getSqlAfterStringback to summary
public String getSqlAfterString()

A statement to run after ending the process of truncating tables. (Usually to re-enable foreign key constraint enforcement.)

getSqlBeforeStringback to summary
public String getSqlBeforeString()

A statement to run before beginning the process of truncating tables. (Usually to disable foreign key constraint enforcement.)

getSqlDisableConstraintStringback to summary
public String getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

A statement that disables the given foreign key constraint.

getSqlEnableConstraintStringback to summary
public String getSqlEnableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

A statement that re-enables the given foreign key constraint.

getSqlTruncateStringsback to summary
public String[] getSqlTruncateStrings(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

A statement or statements that truncate the given tables.