Top Description Fields Constructors Methods
org.hibernate.tool.schema.internal

public Class StandardTableCleaner

extends Object
implements Cleaner
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.Cleaner
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.boot.Metadata, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.QualifiedNameParser, .SqlStringGenerationContext, org.hibernate.dialect.Dialect, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.mapping.ForeignKey, .Table, org.hibernate.tool.schema.spi.Cleaner, java.util.Collection

The basic implementation of Cleaner.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
protected final Dialect

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getSqlAfterString()

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlAfterString.

A statement to run after ending the process of truncating tables.
public String
getSqlBeforeString()

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlBeforeString.

A statement to run before beginning the process of truncating tables.
public String
getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlDisableConstraintString.

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)

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlEnableConstraintString.

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)

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlTruncateStrings.

Deprecated as a consequence of Metadata being deprecated.
A statement or statements that truncate the given tables.
private static QualifiedNameParser.NameParts
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialectback to summary
protected final Dialect dialect

Constructor Detail

StandardTableCleanerback to summary
public StandardTableCleaner(Dialect dialect)

Method Detail

getSqlAfterStringback to summary
public String getSqlAfterString()

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlAfterString.

Doc from org.hibernate.tool.schema.spi.Cleaner.getSqlAfterString.

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

Annotations
@Override
getSqlBeforeStringback to summary
public String getSqlBeforeString()

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlBeforeString.

Doc from org.hibernate.tool.schema.spi.Cleaner.getSqlBeforeString.

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

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

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlDisableConstraintString.

Doc from org.hibernate.tool.schema.spi.Cleaner.getSqlDisableConstraintString.

Deprecated

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

A statement that disables the given foreign key constraint.

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

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlEnableConstraintString.

Doc from org.hibernate.tool.schema.spi.Cleaner.getSqlEnableConstraintString.

Deprecated

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

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

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

Implements org.hibernate.tool.schema.spi.Cleaner.getSqlTruncateStrings.

Doc from org.hibernate.tool.schema.spi.Cleaner.getSqlTruncateStrings.

Deprecated

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

A statement or statements that truncate the given tables.

Annotations
@Override
getTableNameback to summary
private static QualifiedNameParser.NameParts getTableName(Table table)