getTransaction().commit(),getDBTransaction().commit(),getOADBTransaction().commit之间的区别

时间:2021-03-15 05:40:38

原文:

Transaction is an interface which provides base methods for defining database transactions.
DBTransaction is a subinterface on Transaction encapsulating JDBC connection used to framework for DB operations.
OADBTransaction is an Oracle Apps version of DBTransaction.

So the commit comes from the same base class Transaction, but it is always suggested to use OADBTransaction.commit().

尝试翻译如下,如有错误,望不吝指正,谢谢

Transaction是一个接口,它提供基础的方法来定义数据库事务。

DBTransaction是封装的用于框架数据库操作JDBC连接的子接口。

OADBTransaction是基于Oracle应用程序版本DBTransaction的子接口。

所以提交来自同一基类事务的数据,建议使用OADBTransaction.commit()。

参考链接:

wondering: when this and when that