Skip to content

Commit

Permalink
Update document for mybatisgh-1698
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki43zoo committed Nov 1, 2019
1 parent 5a4560a commit 3bfe65c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/site/es/xdoc/java-api.xml
Expand Up @@ -203,7 +203,7 @@ int delete(String statement, Object parameter)]]></source>
int insert(String statement)
int update(String statement)
int delete(String statement)]]></source>

<p>A Cursor offers the same results as a List, except it fetches data lazily using an Iterator.</p>
<source><![CDATA[try (Cursor<MyEntity> entities = session.selectCursor(statement, param)) {
for (MyEntity entity:entities) {
Expand Down Expand Up @@ -353,7 +353,7 @@ void rollback(boolean force)</source>
<li><code>&lt;idArg&gt;</code></li>
</ul>
</td>
<td>Un argumento que es parte de un ConstructorArgs. Atributos: id, column, javaType, jdbcType, typeHandler, select and resultMap. El atributo id es un valor booleano que identifica la propiedad que será usada en las comparaciones, parecido al elemento XML &lt;idArg&gt;.</td>
<td>Un argumento que es parte de un ConstructorArgs. Atributos: id, column, javaType, jdbcType, typeHandler, select and resultMap. El atributo id es un valor booleano que identifica la propiedad que será usada en las comparaciones, parecido al elemento XML &lt;idArg&gt;. Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@TypeDiscriminator</code></td>
Expand Down Expand Up @@ -382,7 +382,7 @@ void rollback(boolean force)</source>
<li><code>&lt;id&gt;</code></li>
</ul>
</td>
<td>Un result mapping entre una columna y una propiedad o campo. Atributos: : id, column, property, javaType, jdbcType, typeHandler, one, many. El atributo id es un valor booleano que indica que la propiedad debe usarse en comparaciones (similar al &lt;id&gt; de los mapeos XML). El atributo one sirve para asociaciones de simples, similar al &lt;association&gt;, y el atributo many es para colecciones, similar al &lt;collection&gt;. Sus denominaciones son tales para evitar conflictos con nombres de clases.</td>
<td>Un result mapping entre una columna y una propiedad o campo. Atributos: : id, column, property, javaType, jdbcType, typeHandler, one, many. El atributo id es un valor booleano que indica que la propiedad debe usarse en comparaciones (similar al &lt;id&gt; de los mapeos XML). El atributo one sirve para asociaciones de simples, similar al &lt;association&gt;, y el atributo many es para colecciones, similar al &lt;collection&gt;. Sus denominaciones son tales para evitar conflictos con nombres de clases. Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@One</code></td>
Expand Down
6 changes: 4 additions & 2 deletions src/site/ja/xdoc/java-api.xml
Expand Up @@ -356,7 +356,8 @@ void rollback(boolean force)</source>
</td>
<td>ConstructorArgs に含まれる個々のコンストラクター引数です。属性: <code>id</code>,
<code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>select</code>,
<code>resultMap</code>. id は真偽値で、指定したプロパティがオブジェクトをユニークに識別できる値であることを表します。この働きは XML 要素の <code>&lt;idArg&gt;</code> に相当します。</td>
<code>resultMap</code>. id は真偽値で、指定したプロパティがオブジェクトをユニークに識別できる値であることを表します。この働きは XML 要素の <code>&lt;idArg&gt;</code> に相当します。
3.5.4以降では、繰り返し可能な注釈として使用することができます。</td>
</tr>
<tr>
<td><code>@TypeDiscriminator</code></td>
Expand Down Expand Up @@ -389,7 +390,8 @@ void rollback(boolean force)</source>
</td>
<td>ある結果列とプロパティまたはフィールドのマッピング情報を定義します。属性: <code>id</code>, <code>column</code>,
<code>property</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>one</code>,
<code>many</code>. id は真偽値で、そのプロパティがオブジェクトの比較に使うよう指示します(XML マッピングにおける id 要素とほぼ同じです)。one は XML における association 要素に、many は collection 要素に相当します(クラス名のコンフリクトを避けるため異なる名称が使われています)。</td>
<code>many</code>. id は真偽値で、そのプロパティがオブジェクトの比較に使うよう指示します(XML マッピングにおける id 要素とほぼ同じです)。one は XML における association 要素に、many は collection 要素に相当します(クラス名のコンフリクトを避けるため異なる名称が使われています)。
3.5.4以降では、繰り返し可能な注釈として使用することができます。</td>
</tr>
<tr>
<td><code>@One</code></td>
Expand Down
6 changes: 4 additions & 2 deletions src/site/ko/xdoc/java-api.xml
Expand Up @@ -454,7 +454,8 @@ void rollback(boolean force)</source>
<td>ConstructorArgs 의 일부로 한개의 생성자 인자
사용가능한 속성들 : id, column, javaType, jdbcType, typeHandler, select 그리고 resultMap.
id 속성은 비교하기 위해 사용되는 값이다.
XML에서는 <code>&lt;idArg&gt;</code> 엘리먼트와 유사하다.</td>
XML에서는 <code>&lt;idArg&gt;</code> 엘리먼트와 유사하다.
Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@TypeDiscriminator</code></td>
Expand Down Expand Up @@ -494,7 +495,8 @@ void rollback(boolean force)</source>
id 속성은 프로퍼티를 비교할 때 사용할지를 표시하는 boolean 값이다. (XML 에서 &lt;id&gt; 와 유사하다.)
one 속성은 한개의 관계(associations)이고 &lt;association&gt; 과 유사하다.
many 속성은 collection이고 &lt;collection&gt; 과 유사하다.
클래스의 명명규칙 충돌을 피하기 위해 명명되었다.</td>
클래스의 명명규칙 충돌을 피하기 위해 명명되었다.
Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@One</code></td>
Expand Down
9 changes: 5 additions & 4 deletions src/site/xdoc/java-api.xml
Expand Up @@ -209,14 +209,14 @@ int delete(String statement, Object parameter)]]></source>
int insert(String statement)
int update(String statement)
int delete(String statement)]]></source>

<p>A <code>Cursor</code> offers the same results as a List, except it fetches data lazily using an <code>Iterator</code>.</p>
<source><![CDATA[try (Cursor<MyEntity> entities = session.selectCursor(statement, param)) {
for (MyEntity entity : entities) {
// process one entity
}
}]]></source>

<p>Finally, there are three advanced versions of the <code>select</code> methods that allow you to restrict the range of rows to return, or provide custom result handling logic, usually for very large data sets.</p>
<source><![CDATA[<E> List<E> selectList (String statement, Object parameter, RowBounds rowBounds)
<T> Cursor<T> selectCursor(String statement, Object parameter, RowBounds rowBounds)
Expand Down Expand Up @@ -372,7 +372,7 @@ void rollback(boolean force)</source>
<td>A single constructor argument that is part of a ConstructorArgs collection. Attributes: <code>id</code>,
<code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>select</code>,
<code>resultMap</code>. The id attribute is a boolean value that identifies the property to be used for comparisons,
similar to the <code>&lt;idArg&gt;</code> XML element.</td>
similar to the <code>&lt;idArg&gt;</code> XML element. Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@TypeDiscriminator</code></td>
Expand Down Expand Up @@ -410,7 +410,8 @@ void rollback(boolean force)</source>
<code>many</code>. The id attribute is a boolean value that indicates that the property should be used for comparisons
(similar to <code>&lt;id&gt;</code> in the XML mappings).
The one attribute is for single associations, similar to <code>&lt;association&gt;</code>, and the many attribute
is for collections, similar to <code>&lt;collection&gt;</code>. They are named as they are to avoid class naming conflicts.</td>
is for collections, similar to <code>&lt;collection&gt;</code>. They are named as they are to avoid class naming conflicts.
Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@One</code></td>
Expand Down
4 changes: 2 additions & 2 deletions src/site/zh/xdoc/java-api.xml
Expand Up @@ -360,7 +360,7 @@ void rollback(boolean force)</source>
<li><code>&lt;idArg&gt;</code></li>
</ul>
</td>
<td>单参数构造方法,是 ConstructorArgs 集合的一部分。属性有:<code>id</code>, <code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>select</code> 和 <code>resultMap</code>。id 属性是布尔值,来标识用于比较的属性,和<code>&lt;idArg&gt;</code> XML 元素相似。</td>
<td>单参数构造方法,是 ConstructorArgs 集合的一部分。属性有:<code>id</code>, <code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>select</code> 和 <code>resultMap</code>。id 属性是布尔值,来标识用于比较的属性,和<code>&lt;idArg&gt;</code> XML 元素相似。Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@TypeDiscriminator</code></td>
Expand Down Expand Up @@ -389,7 +389,7 @@ void rollback(boolean force)</source>
<li><code>&lt;id&gt;</code></li>
</ul>
</td>
<td>在列和属性或字段之间的单独结果映射。属性有:<code>id</code>, <code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>one</code>, <code>many</code>。id 属性是一个布尔值,来标识应该被用于比较(和在 XML 映射中的<code>&lt;id&gt;</code>相似)的属性。one 属性是单独的联系,和 <code>&lt;association&gt;</code> 相似,而 many 属性是对集合而言的,和<code>&lt;collection&gt;</code>相似。它们这样命名是为了避免名称冲突。</td>
<td>在列和属性或字段之间的单独结果映射。属性有:<code>id</code>, <code>column</code>, <code>javaType</code>, <code>jdbcType</code>, <code>typeHandler</code>, <code>one</code>, <code>many</code>。id 属性是一个布尔值,来标识应该被用于比较(和在 XML 映射中的<code>&lt;id&gt;</code>相似)的属性。one 属性是单独的联系,和 <code>&lt;association&gt;</code> 相似,而 many 属性是对集合而言的,和<code>&lt;collection&gt;</code>相似。它们这样命名是为了避免名称冲突。Since 3.5.4, it can be used as repeatable annotation.</td>
</tr>
<tr>
<td><code>@One</code></td>
Expand Down

0 comments on commit 3bfe65c

Please sign in to comment.