Skip to content

Commit eeed7a4

Browse files
committed
Add explanation for gh-1013
1 parent a3b11b2 commit eeed7a4

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

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

Lines changed: 3 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-2016 the original author or authors.
4+
Copyright 2009-2017 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.
@@ -445,7 +445,8 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
445445
<li><code>&lt;select&gt;</code></li>
446446
</ul>
447447
</td>
448-
<td>Estas anotaciones SQL alternativas te permiten especificar un nombre de clases y un método que devolverán la SQL que debe ejecutarse. Cuando se ejecute el método MyBatis instanciará la clase y ejecutará el método especificados en el provider. El método puede opcionalmente recibir el objeto parámetro.(In MyBatis 3.4 or later, it's allow multiple parameters) Atributos: type, method. El atributo type es el nombre completamente cualificado de una clase. El method es el nombre un método de dicha clase. Nota: A continuación hay una sección sobre la clase, que puede ayudar a construir SQL dinámico de una forma más clara y sencilla de leer.</td>
448+
<td>Estas anotaciones SQL alternativas te permiten especificar un nombre de clases y un método que devolverán la SQL que debe ejecutarse. Cuando se ejecute el método MyBatis instanciará la clase y ejecutará el método especificados en el provider. You can pass objects that passed to arguments of a mapper method, "Mapper interface type" and "Mapper method"
449+
via the <code>ProviderContext</code>(available since MyBatis 3.4.5 or later) as method argument.(In MyBatis 3.4 or later, it's allow multiple parameters) Atributos: type, method. El atributo type es el nombre completamente cualificado de una clase. El method es el nombre un método de dicha clase. Nota: A continuación hay una sección sobre la clase, que puede ayudar a construir SQL dinámico de una forma más clara y sencilla de leer.</td>
449450
</tr>
450451
<tr>
451452
<td><code>@Param</code></td>

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

Lines changed: 2 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-2016 the original author or authors.
4+
Copyright 2009-2017 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.
@@ -465,7 +465,7 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
465465
</ul>
466466
</td>
467467
<td>これらのアノテーションは動的 SQL を生成するためのものです。実行時に指定されたメソッドが呼び出され、メソッドから返された SQL ステートメントが実行されます。マップドステートメントを実行する際、プロバイダーによって指定したクラスのインスタンスが作成され、指定されたメソッドが実行されます。
468-
メソッドに引数を渡すことができます。(MyBatis 3.4以降では、複数の引数を渡すことができます)
468+
なお、メソッド引数にはMapperメソッドの引数に渡したオブジェクトに加え、<code>ProviderContext</code>(MyBatis 3.4.5以降で利用可能)を介して「Mapperインタフェースの型」と「Mapperメソッド」を渡すことができます。(MyBatis 3.4以降では、複数の引数を渡すことができます)
469469
キー: <code>type</code>, <code>method</code>. <code>type</code> にはクラスオブジェクト、<code>method</code> にはメソッド名を指定します。 <span class="label important">NOTE</span> 次の章で、クリーンで可読性の高いコードで動的 SQL を構築するためのクラスについて説明します。
470470
</td>
471471
</tr>

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

Lines changed: 4 additions & 3 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-2016 the original author or authors.
4+
Copyright 2009-2017 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.
@@ -580,8 +580,9 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
580580
</ul>
581581
</td>
582582
<td>실행시 SQL 을 리턴할 클래스 과 메소드명을 명시하도록 해주는 대체수단의 애노테이션이다.
583-
매핑된 구문을 실행할 때 마이바티스는 클래스의 인스턴스를 만들고 메소드를 실행한다.
584-
메소드는 파라미터 객체를 받을 수도 있다.(마이바티스 3.4이상에서는 복수 파라미터를 허용한다.)
583+
매핑된 구문을 실행할 때 마이바티스는 클래스의 인스턴스를 만들고 메소드를 실행한다.
584+
You can pass objects that passed to arguments of a mapper method, "Mapper interface type" and "Mapper method"
585+
via the <code>ProviderContext</code>(available since MyBatis 3.4.5 or later) as method argument.(마이바티스 3.4이상에서는 복수 파라미터를 허용한다.)
585586
사용가능한 속성들 : type, method.
586587
type 속성은 클래스.
587588
method 속성은 메소드명이다.

src/site/xdoc/java-api.xml

Lines changed: 4 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-2016 the original author or authors.
4+
Copyright 2009-2017 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.
@@ -498,7 +498,9 @@ try (SqlSession session = sqlSessionFactory.openSession()) {
498498
<td>Allows for creation of dynamic SQL. These alternative SQL annotations allow you to specify a class and
499499
a method name that will return the SQL to run at execution time. Upon executing the mapped statement, MyBatis will
500500
instantiate the class, and execute the method, as specified by the provider.
501-
The method can optionally accept parameter objects.(In MyBatis 3.4 or later, it's allow multiple parameters)
501+
You can pass objects that passed to arguments of a mapper method, "Mapper interface type" and "Mapper method"
502+
via the <code>ProviderContext</code>(available since MyBatis 3.4.5 or later) as method argument.
503+
(In MyBatis 3.4 or later, it's allow multiple parameters)
502504
Attributes: <code>type</code>, <code>method</code>. The <code>type</code> attribute is a class.
503505
The <code>method</code> is the name of the method on that class. <span class="label important">NOTE</span>
504506
Following this section is a discussion about the class, which can help build dynamic SQL in a cleaner, easier to read way.</td>

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

Lines changed: 4 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-2016 the original author or authors.
4+
Copyright 2009-2017 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.
@@ -752,7 +752,9 @@ resultSets=””。
752752
MyBatis
753753
会实例化这个类,然后执行由 provider
754754
指定的方法.
755-
该方法可以有选择地接受参数对象.(In MyBatis 3.4 or later, it's allow multiple parameters)
755+
You can pass objects that passed to arguments of a mapper method, "Mapper interface type" and "Mapper method"
756+
via the <code>ProviderContext</code>(available since MyBatis 3.4.5 or later) as method argument.
757+
(In MyBatis 3.4 or later, it's allow multiple parameters)
756758
属性: type,method。type 属性是类。method 属性是方法名。
757759
注意:
758760
这节之后是对 类的

0 commit comments

Comments
 (0)