Class FHIRTransactionHelper


  • public class FHIRTransactionHelper
    extends java.lang.Object
    This helper class is used to manage the transaction on the current thread.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin()
      If a transaction has not yet been started on this thread, then start one.
      void commit()
      If we previously started a transaction on this thread using this helper instance, then commit it now.
      void end()
      Same as commit, but is preferred for readability because commit() will actually do a rollback if setRollbackOnly is called on the underlying transaction
      boolean hasBegun()
      Find out if we're currently in a transaction
      void rollback()
      If we previously started a transaction on this thread using this helper instance, then perform a rollback now; otherwise, set the transaction as 'rollback only' to prevent it from being committed later.
      void setRollbackOnly()
      Mark the current transaction for rollback.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait