Interface TransactionalDao


  • public interface TransactionalDao
    Contract for a DAO to interact with a transaction.
    Author:
    davidc
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beforeCommit​(boolean readOnly)
      This callback provides a chance for the DAO to do any pre-commit work.
      boolean isDirty()
      Are there any pending changes which must be synchronized with the store?
    • Method Detail

      • isDirty

        boolean isDirty()
        Are there any pending changes which must be synchronized with the store?
        Returns:
        true => changes are pending
      • beforeCommit

        void beforeCommit​(boolean readOnly)
        This callback provides a chance for the DAO to do any pre-commit work.
        Parameters:
        readOnly - true if the transaction was read-only
        Since:
        1.4.5