Package com.landawn.abacus.jdbc
Interface Transaction
- All Known Implementing Classes:
SQLTransaction
public interface Transaction
- Since:
- 0.8
- Author:
- Haiyang Li
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The Enum Action.static enum
The Enum Status. -
Method Summary
-
Method Details
-
id
String id()Returns the identifier of this transaction if it's supported.- Returns:
-
isolationLevel
IsolationLevel isolationLevel() -
status
Transaction.Status 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
-