Package org.hibernate.testing.cleaner
Class PostgreSQLDatabaseCleaner
- java.lang.Object
-
- org.hibernate.testing.cleaner.PostgreSQLDatabaseCleaner
-
- All Implemented Interfaces:
DatabaseCleaner
public class PostgreSQLDatabaseCleaner extends Object implements DatabaseCleaner
-
-
Constructor Summary
Constructors Constructor Description PostgreSQLDatabaseCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIgnoredTable(String tableName)
void
clearAllData(Connection connection)
void
clearAllSchemas(Connection connection)
void
clearData(Connection connection, String schemaName)
void
clearSchema(Connection connection, 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 connection)
- Specified by:
clearAllSchemas
in interfaceDatabaseCleaner
-
clearSchema
public void clearSchema(Connection connection, 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
-
-