org.alfresco.repo.transaction
Interface TransactionalDao


public interface TransactionalDao

Contract for a DAO to interact with a transaction.


Method Summary
 void beforeCommit()
          This callback provides a chance for the DAO to do any pre-commit work.
 void flush()
          Allows the dao to flush any consuming resources.
 boolean isDirty()
          Are there any pending changes which must be synchronized with the store?
 

Method Detail

flush

void flush()
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.

This method must not be used for implementing business logic.


isDirty

boolean isDirty()
Are there any pending changes which must be synchronized with the store?

Returns:
true => changes are pending

beforeCommit

void beforeCommit()
This callback provides a chance for the DAO to do any pre-commit work.

Since:
1.4.5


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.