Skip to content

Commit 037e298

Browse files
committed
Updated documentation
1 parent 7f5f84a commit 037e298

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

src/site/es/xdoc/configuration.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -1647,7 +1647,10 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader,properti
16471647
<p>MyBatis incluye dos tipos de TransactionManager (ej. type=”[JDBC|MANAGED]”):
16481648
</p>
16491649
<ul>
1650-
<li>JDBC – Este TransactionManager simplemente hace uso del las capacidades de commit y rollback de JDBC. Utiliza la conexión obtenida del DataSource para gestionar la transacción.
1650+
<li>JDBC – Este TransactionManager simplemente hace uso del las capacidades de commit y rollback de JDBC. Utiliza la conexión obtenida del DataSource para gestionar la transacción. By default, it enables auto-commit when closing the connection for compatibility with some drivers. However, for some drivers, enabling auto-commit is not only unnecesry, but also is an expensive operation. So, since version 3.5.10, you can skip this step by setting the "skipSetAutoCommitOnClose" property to true. For example:
1651+
<source><![CDATA[<transactionManager type="JDBC">
1652+
<property name="skipSetAutoCommitOnClose" value="true"/>
1653+
</transactionManager>]]></source>
16511654
</li>
16521655
<li>MANAGED – Este TransactionManager no hace nada. No hace commit ni rollback sobre la conexión. En su lugar, permite que el contenedor gestione el ciclo de vida completo de la transacción (ej. Spring o un servidor de aplicaciones JEE). Por defecto cierra la conexión. Sin embargo, algunos contenedores no esperan que la conexión se cierre y por tanto, si necesitas cambiar este comportamiento, informa la propiedad closeConnection a false. Por ejemplo:
16531656
<source><![CDATA[<transactionManager type="MANAGED">

src/site/ja/xdoc/configuration.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -1719,7 +1719,10 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader,properti
17191719
<ul>
17201720
<li>
17211721
JDBC - JDBC トランザクションマネージャーは、単純に JDBC のコミットとロールバックの機能を直接利用します。
1722-
この場合、トランザクションのスコープはデータソースから取得した接続に依存します。
1722+
この場合、トランザクションのスコープはデータソースから取得した接続に依存します。一部のドライバーとの互換性を保つため、デフォルトでは接続をクローズする前にオートコミットを有効化するようになっていますが、この処理は他のドライバにとっては不要なだけでなく負荷の高い操作となる可能性があります。バージョン 3.5.10 以降では skipSetAutoCommitOnClose に false を設定することでオートコミットの有効化処理をスキップできるようになっています。
1723+
<source><![CDATA[<transactionManager type="JDBC">
1724+
<property name="skipSetAutoCommitOnClose" value="false"/>
1725+
</transactionManager>]]></source>
17231726
</li>
17241727
<li>
17251728
MANAGED - MANAGED トランザクションマネージャーはコミットもロールバックもしません。

src/site/ko/xdoc/configuration.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -1613,7 +1613,11 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader,properti
16131613
<p>마이바티스는 두 가지 타입의 TransactionManager를 제공한다.</p>
16141614
<ul>
16151615
<li>JDBC - 이 설정은 간단하게 JDBC 커밋과 롤백을 처리하기 위해 사용된다.
1616-
트랜잭션의 스코프를 관리하기 위해 dataSource 로 부터 커넥션을 가져온다. </li>
1616+
트랜잭션의 스코프를 관리하기 위해 dataSource 로 부터 커넥션을 가져온다. By default, it enables auto-commit when closing the connection for compatibility with some drivers. However, for some drivers, enabling auto-commit is not only unnecesry, but also is an expensive operation. So, since version 3.5.10, you can skip this step by setting the "skipSetAutoCommitOnClose" property to true. For example:
1617+
<source><![CDATA[<transactionManager type="JDBC">
1618+
<property name="skipSetAutoCommitOnClose" value="true"/>
1619+
</transactionManager>]]></source>
1620+
</li>
16171621
<li>MANAGED - 이 설정은 어떤것도 하지 않는다.
16181622
결코 커밋이나 롤백을 하지 않는다.
16191623
대신 컨테이너가 트랜잭션의 모든 생명주기를 관리한다.

src/site/xdoc/configuration.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -1885,7 +1885,10 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, propert
18851885
and
18861886
rollback facilities directly. It relies on the connection
18871887
retrieved from the dataSource to manage the scope of the
1888-
transaction.
1888+
transaction. By default, it enables auto-commit when closing the connection for compatibility with some drivers. However, for some drivers, enabling auto-commit is not only unnecesry, but also is an expensive operation. So, since version 3.5.10, you can skip this step by setting the "skipSetAutoCommitOnClose" property to true. For example:
1889+
<source><![CDATA[<transactionManager type="JDBC">
1890+
<property name="skipSetAutoCommitOnClose" value="true"/>
1891+
</transactionManager>]]></source>
18891892
</li>
18901893
<li>
18911894
MANAGED – This configuration simply does almost nothing. It

src/site/zh/xdoc/configuration.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -1672,7 +1672,10 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, propert
16721672
<p>在 MyBatis 中有两种类型的事务管理器(也就是 type="[JDBC|MANAGED]"):</p>
16731673
<ul>
16741674
<li>
1675-
JDBC – 这个配置直接使用了 JDBC 的提交和回滚设施,它依赖从数据源获得的连接来管理事务作用域。
1675+
JDBC – 这个配置直接使用了 JDBC 的提交和回滚设施,它依赖从数据源获得的连接来管理事务作用域。 By default, it enables auto-commit when closing the connection for compatibility with some drivers. However, for some drivers, enabling auto-commit is not only unnecesry, but also is an expensive operation. So, since version 3.5.10, you can skip this step by setting the "skipSetAutoCommitOnClose" property to true. For example:
1676+
<source><![CDATA[<transactionManager type="JDBC">
1677+
<property name="skipSetAutoCommitOnClose" value="true"/>
1678+
</transactionManager>]]></source>
16761679
</li>
16771680
<li>
16781681
MANAGED – 这个配置几乎没做什么。它从不提交或回滚一个连接,而是让容器来管理事务的整个生命周期(比如 JEE 应用服务器的上下文)。

0 commit comments

Comments
 (0)