David Caruana 43a69ac371 Fix AR-649.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-15 17:58:03 +00:00

27 lines
643 B
Java

package org.alfresco.repo.transaction;
/**
* Contract for a DAO to interact with a transaction.
*
* @author davidc
*/
public interface TransactionalDao
{
/**
* Allows the dao to flush any consuming resources. This mechanism is
* used primarily during long-lived transactions to ensure that system resources
* are not used up.
* <p>
* This method must not be used for implementing business logic.
*/
void flush();
/**
* Are there any pending changes which must be synchronized with the store?
*
* @return true => changes are pending
*/
public boolean isDirty();
}