Interface Transaction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.reactivex.rxjava3.core.Completable commit()
      Commits the current transaction and close transactional connection.
      io.reactivex.rxjava3.core.Completable create​(SavePoint savePoint)
      Creates the save point in the current transaction.
      IsolationLevel getIsolationLevel()
      Returns the IsolationLevel for this connection.
      io.reactivex.rxjava3.core.Completable release​(SavePoint savePoint)
      Releases the save point in the current transaction.
      io.reactivex.rxjava3.core.Completable rollback()
      Rolls back the current transaction and close transactional connection.
      io.reactivex.rxjava3.core.Completable rollback​(SavePoint savePoint)
      Rolls back to the save point in the current transaction.
      io.reactivex.rxjava3.core.Completable setIsolationLevel​(IsolationLevel isolationLevel)
      Configures the isolation level for the current transaction.
    • Method Detail

      • commit

        io.reactivex.rxjava3.core.Completable commit()
        Commits the current transaction and close transactional connection.
        Returns:
        the Completable that indicates that the transaction has been committed and the connection has been closed.
      • rollback

        io.reactivex.rxjava3.core.Completable rollback()
        Rolls back the current transaction and close transactional connection.
        Returns:
        the Completable that indicates that the transaction has been rolled back and the connection has been closed.
      • create

        io.reactivex.rxjava3.core.Completable create​(SavePoint savePoint)
        Creates the save point in the current transaction.
        Parameters:
        savePoint - the save point to create
        Returns:
        the Completable that indicates that the save point has been created
        Throws:
        UnsupportedOperationException - if save points are not supported
        IllegalArgumentException - if the specified save point is invalid
      • release

        io.reactivex.rxjava3.core.Completable release​(SavePoint savePoint)
        Releases the save point in the current transaction. Calling this for drivers not supporting save point release results in a no-op.
        Parameters:
        savePoint - the save point to release
        Returns:
        the Completable that indicates that the save point has been released
        Throws:
        IllegalArgumentException - if the specified save point is invalid
      • rollback

        io.reactivex.rxjava3.core.Completable rollback​(SavePoint savePoint)
        Rolls back to the save point in the current transaction.
        Parameters:
        savePoint - the save point to rollback to
        Returns:
        the Completable that indicates that the save point has been rolled back to
        Throws:
        UnsupportedOperationException - if save points are not supported
        IllegalArgumentException - if the specified save point is invalid