Class StandardTableCleaner
java.lang.Object
org.hibernate.tool.schema.internal.StandardTableCleaner
- All Implemented Interfaces:
Cleaner
The basic implementation of
Cleaner.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA statement to run after ending the process of truncating tables.A statement to run before beginning the process of truncating tables.getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) A statement that disables the given foreign key constraint.getSqlEnableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) A statement that re-enables the given foreign key constraint.String[]getSqlTruncateStrings(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context) A statement or statements that truncate the given tables.
-
Field Details
-
dialect
-
-
Constructor Details
-
StandardTableCleaner
-
-
Method Details
-
getSqlBeforeString
Description copied from interface:CleanerA statement to run before beginning the process of truncating tables. (Usually to disable foreign key constraint enforcement.)- Specified by:
getSqlBeforeStringin interfaceCleaner
-
getSqlAfterString
Description copied from interface:CleanerA statement to run after ending the process of truncating tables. (Usually to re-enable foreign key constraint enforcement.)- Specified by:
getSqlAfterStringin interfaceCleaner
-
getSqlTruncateStrings
public String[] getSqlTruncateStrings(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:CleanerA statement or statements that truncate the given tables.- Specified by:
getSqlTruncateStringsin interfaceCleaner
-
getSqlDisableConstraintString
public String getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:CleanerA statement that disables the given foreign key constraint.- Specified by:
getSqlDisableConstraintStringin interfaceCleaner
-
getSqlEnableConstraintString
public String getSqlEnableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:CleanerA statement that re-enables the given foreign key constraint.- Specified by:
getSqlEnableConstraintStringin interfaceCleaner
-