Package org.hibernate.testing.cleaner
Class DB2DatabaseCleaner
- java.lang.Object
-
- org.hibernate.testing.cleaner.DB2DatabaseCleaner
-
- All Implemented Interfaces:
DatabaseCleaner
public class DB2DatabaseCleaner extends Object implements DatabaseCleaner
-
-
Constructor Summary
Constructors Constructor Description DB2DatabaseCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIgnoredTable(String tableName)
void
clearAllData(Connection connection)
void
clearAllSchemas(Connection c)
void
clearData(Connection connection, String schemaName)
void
clearSchema(Connection c, String schemaName)
boolean
isApplicable(Connection connection)
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Connection connection)
- Specified by:
isApplicable
in interfaceDatabaseCleaner
-
addIgnoredTable
public void addIgnoredTable(String tableName)
- Specified by:
addIgnoredTable
in interfaceDatabaseCleaner
-
clearAllSchemas
public void clearAllSchemas(Connection c)
- Specified by:
clearAllSchemas
in interfaceDatabaseCleaner
-
clearSchema
public void clearSchema(Connection c, String schemaName)
- Specified by:
clearSchema
in interfaceDatabaseCleaner
-
clearAllData
public void clearAllData(Connection connection)
- Specified by:
clearAllData
in interfaceDatabaseCleaner
-
clearData
public void clearData(Connection connection, String schemaName)
- Specified by:
clearData
in interfaceDatabaseCleaner
-
-