Interface Transaction

All Known Implementing Classes:
SQLTransaction

public interface Transaction
Since:
0.8
Author:
Haiyang Li
  • Method Details

    • id

      String id()
      Returns the identifier of this transaction if it's supported.
      Returns:
    • isolationLevel

      IsolationLevel isolationLevel()
      Returns:
    • status

      Returns:
      Status
    • isActive

      boolean isActive()
      Checks if is active.
      Returns:
      true, if is active
    • commit

      void commit() throws com.landawn.abacus.exception.UncheckedSQLException
      Throws:
      com.landawn.abacus.exception.UncheckedSQLException - the unchecked SQL exception
    • rollback

      void rollback() throws com.landawn.abacus.exception.UncheckedSQLException
      Throws:
      com.landawn.abacus.exception.UncheckedSQLException - the unchecked SQL exception