Package org.hibernate.testing.cleaner
Class AbstractMySQLDatabaseCleaner
- java.lang.Object
-
- org.hibernate.testing.cleaner.AbstractMySQLDatabaseCleaner
-
- All Implemented Interfaces:
DatabaseCleaner
- Direct Known Subclasses:
MariaDBDatabaseCleaner,MySQL5DatabaseCleaner,MySQL8DatabaseCleaner
public abstract class AbstractMySQLDatabaseCleaner extends Object implements DatabaseCleaner
-
-
Constructor Summary
Constructors Constructor Description AbstractMySQLDatabaseCleaner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddIgnoredTable(String tableName)voidclearAllData(Connection connection)voidclearAllSchemas(Connection connection)voidclearData(Connection connection, String schemaName)voidclearSchema(Connection connection, String schemaName)protected abstract StringcreateClearingStatementForTable(String tableSchema, String tableName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.testing.cleaner.DatabaseCleaner
isApplicable
-
-
-
-
Method Detail
-
addIgnoredTable
public void addIgnoredTable(String tableName)
- Specified by:
addIgnoredTablein interfaceDatabaseCleaner
-
clearAllSchemas
public void clearAllSchemas(Connection connection)
- Specified by:
clearAllSchemasin interfaceDatabaseCleaner
-
clearSchema
public void clearSchema(Connection connection, String schemaName)
- Specified by:
clearSchemain interfaceDatabaseCleaner
-
clearAllData
public void clearAllData(Connection connection)
- Specified by:
clearAllDatain interfaceDatabaseCleaner
-
clearData
public void clearData(Connection connection, String schemaName)
- Specified by:
clearDatain interfaceDatabaseCleaner
-
-