org.unitils.database.util
Interface Flushable
public interface Flushable
Marks a module as being flushable. This means that flushDatabaseUpdates(Object) will be called on the module
when a flush is requested on the DatabaseModule (by calling its flushDatabaseUpdates(Object) method).
An example a flushable module is the HibernateModule. Hibernate stores updates in the session (in memory) without performing
them on the database. If you want to be sure that these updates are executed on the database, you need to flush the hibernate session.
- Author:
- Tim Ducheyne, Filip Neven
|
Method Summary |
void |
flushDatabaseUpdates(java.lang.Object testObject)
Flush all cached database operations. |
flushDatabaseUpdates
void flushDatabaseUpdates(java.lang.Object testObject)
- Flush all cached database operations.
- Parameters:
testObject -
Copyright © 2011. All Rights Reserved.