public interface Transaction
| 限定符和类型 | 方法和说明 |
|---|---|
void |
begin() |
void |
commit() |
int |
getTransactionIsolation() |
boolean |
isReadOnly() |
void |
rollback() |
void |
setReadOnly(boolean readOnly) |
void |
setTimeout(int second) |
void |
setTransactionIsolation(TransactionIsolationLevel level) |
void begin()
throws SQLException
SQLExceptionvoid commit()
throws SQLException
SQLExceptionvoid rollback()
throws SQLException
SQLExceptionvoid setReadOnly(boolean readOnly)
throws SQLException
SQLExceptionvoid setTransactionIsolation(TransactionIsolationLevel level) throws SQLException
SQLExceptionboolean isReadOnly()
throws SQLException
SQLExceptionint getTransactionIsolation()
throws SQLException
SQLExceptionvoid setTimeout(int second)
Copyright © 2019. All rights reserved.