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