Interface TransactionalDao


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

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

    • 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