パッケージ org.nkjmlab.sorm4j
インタフェース TransactionFunction
- 既知のサブインタフェースのリスト:
OrmConnection,OrmConnectionCommon,OrmTransaction
public interface TransactionFunction
Functions of handling transaction.
- 作成者:
- nkjm
-
メソッドの概要
修飾子とタイプメソッド説明voidbegin()Begin transaction.voidbegin(int isolationLevel) Begins transaction with the given transaction isolation level.voidclose()Closes theConnectionassociated with this instance.voidcommit()Commits theConnectionassociated with this instance.voidrollback()Rollback theConnectionassociated with this instance.voidsetAutoCommit(boolean autoCommit) Sets the auto commit behavior for theConnectionassociated with this instance.
-
メソッドの詳細
-
begin
void begin()Begin transaction. The isolation level is corresponding toSorm.Builder.setTransactionIsolationLevel(int). -
begin
void begin(int isolationLevel) Begins transaction with the given transaction isolation level.- パラメータ:
isolationLevel-
-
close
void close()Closes theConnectionassociated with this instance.- 関連項目:
-
commit
void commit()Commits theConnectionassociated with this instance.- 関連項目:
-
rollback
void rollback()Rollback theConnectionassociated with this instance.- 関連項目:
-
setAutoCommit
void setAutoCommit(boolean autoCommit) Sets the auto commit behavior for theConnectionassociated with this instance.
-