Skip to content

Commit bacd59c

Browse files
committed
Apply the changes to the other languages.
1 parent 28ffd4f commit bacd59c

File tree

8 files changed

+29
-4
lines changed

8 files changed

+29
-4
lines changed

src/site/es/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
334334
<td><code>Class</code></td>
335335
<td><code>&lt;cacheRef&gt;</code></td>
336336
<td>
337-
Referencia una cache de otro namespace. Atributos: <code>value</code> and <code>name</code>.
337+
Referencia una cache de otro namespace. Note that caches declared in an XML mapper file are considered a separate namespace, even if they share the same FQCN. Atributos: <code>value</code> and <code>name</code>.
338338
If you use this annotation, you should be specified either <code>value</code> or <code>name</code> attribute.
339339
For the <code>value</code> attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
340340
and for the <code>name</code> attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.

src/site/es/xdoc/sqlmap-xml.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,13 @@ SELECT * FROM POST WHERE BLOG_ID = #{id}]]></source>
16591659
<li>La caché puede tratarse como una cache de tipo lectura/escritura, lo cual significa que los objetos obtenidos no se comparten y pueden modificarse con seguridad por el llamante sin interferir en otras potenciales modificaciones realizadas por otros llamantes o hilos.</li>
16601660
</ul>
16611661

1662+
<p>
1663+
<span class="label important">NOTE</span> The cache will only apply to statements declared in the mapping file
1664+
where the cache tag is located. If you are using the Java API in conjunction with the XML mapping files, then
1665+
statements declared in the companion interface will not be cached by default. You will need to refer to the
1666+
cache region using the @CacheNamespaceRef annotation.
1667+
</p>
1668+
16621669
<p>Todas estas propiedades son modificables mediante atributos del elemento cache. Por ejemplo:
16631670
</p>
16641671

src/site/ja/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
335335
<td><code>Class</code></td>
336336
<td><code>&lt;cacheRef&gt;</code></td>
337337
<td>
338-
別のネームスペースに対して定義されているキャッシュの設定を参照します。 属性: <code>value</code>, <code>name</code>
338+
別のネームスペースに対して定義されているキャッシュの設定を参照します。XML マッパーで宣言されているキャッシュは、namespace に同一 FQCN が指定されていても独立したキャッシュとして扱われます。属性: <code>value</code>, <code>name</code>
339339
このアノテーションを使用する場合は、<code>value</code>または<code>name</code>属性のどちらかを指定する必要があります。
340340
<code>value</code>属性にはネームスペースを示すJava型(ネームスペース名は指定したJava型のFQCNになる)を、
341341
<code>name</code>属性(この属性は3.4.2以降で利用可能)にはネームスペースを示す名前を指定します。

src/site/ja/xdoc/sqlmap-xml.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,10 @@ SELECT * FROM POST WHERE BLOG_ID = #{id}]]></source>
18761876
<li>このキャッシュは読み書き可能なキャッシュとして扱われます。これはつまり、取得したオブジェクトは共有されず、呼び出した側で安全に変更することができる(別の呼び出し元や他スレッドでの変更の影響を受けない)ということを意味しています。</li>
18771877
</ul>
18781878

1879+
<p>
1880+
<span class="label important">重要</span> 対応する Java マッパーのステートメントをキャッシュの適用対象に含めるためには <code>@CacheNamespaceRef</code> アノテーションで XML マッパーのネームスペースを指定する必要があります。
1881+
</p>
1882+
18791883
<p>
18801884
これらのプロパティは cache 要素の属性で変更することができます。
18811885
</p>

src/site/ko/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
431431
<td><code>Class</code></td>
432432
<td><code>&lt;cacheRef&gt;</code></td>
433433
<td>
434-
다른 명명공간의 캐시에 대한 참조 사용가능한 속성들 : <code>value</code>, <code>name</code>.
434+
다른 명명공간의 캐시에 대한 참조 Note that caches declared in an XML mapper file are considered a separate namespace, even if they share the same FQCN. 사용가능한 속성들 : <code>value</code>, <code>name</code>.
435435
이 annotation 을 사용하려면 <code>value</code> 또는 <code>name</code> 속성을 지정해야 한다.
436436
<code>value</code> 속성은 namespace(namespace 이름은 지정된 java type 의 FQCN 이 된다) 를 나타내는 java type 을 지정한다,
437437
그리고 <code>name</code> 속성(이 속성은 3.4.2 부터 사용가능하다) 은 namespace 를 나타내는 이름을 지정한다.

src/site/ko/xdoc/sqlmap-xml.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,13 @@ public class User {
16001600
<li>캐시는 읽기/쓰기 캐시처럼 처리될 것이다. 이것은 가져올 객체는 공유되지 않고 호출자에 의해 안전하게 변경된다는 것을 의미한다.</li>
16011601
</ul>
16021602

1603+
<p>
1604+
<span class="label important">NOTE</span> The cache will only apply to statements declared in the mapping file
1605+
where the cache tag is located. If you are using the Java API in conjunction with the XML mapping files, then
1606+
statements declared in the companion interface will not be cached by default. You will need to refer to the
1607+
cache region using the @CacheNamespaceRef annotation.
1608+
</p>
1609+
16031610
<p>모든 프로퍼티는 cache 엘리먼트의 속성을 통해 변경가능하다.
16041611
예를들면</p>
16051612

src/site/zh/xdoc/java-api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ flushInterval,size,readWrite,blocking 和 properties。
541541
<td><code>类</code></td>
542542
<td><code>&lt;cacheRef&gt;</code></td>
543543
<td>
544-
参照另外一个命名空间的缓存来使用。属性:value, name。
544+
参照另外一个命名空间的缓存来使用。Note that caches declared in an XML mapper file are considered a separate namespace, even if they share the same FQCN. 属性:value, name。
545545
If you use this annotation, you should be specified either <code>value</code> or <code>name</code> attribute.
546546
For the <code>value</code> attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
547547
and for the <code>name</code> attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.

src/site/zh/xdoc/sqlmap-xml.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,13 @@ MyBatis 包含一个非常强大的查询缓存特性,它可以非常方便地
17691769
</li>
17701770
</ul>
17711771

1772+
<p>
1773+
<span class="label important">NOTE</span> The cache will only apply to statements declared in the mapping file
1774+
where the cache tag is located. If you are using the Java API in conjunction with the XML mapping files, then
1775+
statements declared in the companion interface will not be cached by default. You will need to refer to the
1776+
cache region using the @CacheNamespaceRef annotation.
1777+
</p>
1778+
17721779
<p>
17731780
所有的这些属性都可以通过缓存元素的属性来修改。比如:
17741781
</p>

0 commit comments

Comments
 (0)