Package org.hibernate.tool.schema.spi
Interface Cleaner
-
- All Known Implementing Classes:
StandardTableCleaner
@Incubating public interface Cleaner
An object that produces the SQL required to truncate the tables in a schema.- Since:
- 6.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getSqlAfterString()
A statement to run after ending the process of truncating tables.String
getSqlBeforeString()
A statement to run before beginning the process of truncating tables.String
getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)
A statement that disables the given foreign key constraint.String
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.
-
-
-
Method Detail
-
getSqlBeforeString
String getSqlBeforeString()
A statement to run before beginning the process of truncating tables. (Usually to disable foreign key constraint enforcement.)
-
getSqlAfterString
String getSqlAfterString()
A statement to run after ending the process of truncating tables. (Usually to re-enable foreign key constraint enforcement.)
-
getSqlDisableConstraintString
String getSqlDisableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)
A statement that disables the given foreign key constraint.
-
getSqlEnableConstraintString
String getSqlEnableConstraintString(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)
A statement that re-enables the given foreign key constraint.
-
getSqlTruncateStrings
String[] getSqlTruncateStrings(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context)
A statement or statements that truncate the given tables.
-
-