Skip to content

Commit 9857c3c

Browse files
committed
[ci skip] Spanish docs and placeholders for JA, KO & ZH.
1 parent 4b2d3df commit 9857c3c

File tree

5 files changed

+382
-6
lines changed

5 files changed

+382
-6
lines changed

src/site/es/xdoc/batch.xml

Lines changed: 38 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 2010-2016 the original author or authors.
4+
Copyright 2010-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.
@@ -42,7 +42,7 @@
4242

4343
<subsection name="MyBatisPagingItemReader">
4444
<p>
45-
Este bean es un <code>IteamReader</code> que lee registros de una base de datos usando MyBatis de forma paginada.
45+
Este bean es un <code>IteamReader</code> que lee registros de una base de datos usando paginación.
4646
</p>
4747

4848
<p>
@@ -51,7 +51,7 @@
5151
Al llamar al método <code>read()</code> éste devuelve el objeto que corresponde a la posición actual
5252
y solicita más páginas si es necesario.
5353

54-
El reader pasa algunos parametros estándar y la SQL deberá hacer uso de algunos de ellos para construir un resultset
54+
El reader recibe algunos parametros estándar y la SQL deberá hacer uso de algunos de ellos para construir un resultset
5555
del tamaño requerido. Los parametros son:
5656
</p>
5757

@@ -118,6 +118,41 @@
118118

119119
</subsection>
120120

121+
<subsection name="MyBatisCursorItemReader">
122+
<p>
123+
Este bean es un <code>IteamReader</code> que lee registros de la base de datos usando un cursor.
124+
</p>
125+
126+
<p>
127+
<span class="label important">NOTA</span> Para usar este bean necesitas al menos MyBatis 3.4.0 o superior.
128+
</p>
129+
130+
<p>
131+
Ejecuta la sentencia especificada mediante la propiedad <code>setQueryId</code> para obtener los datos
132+
usando el método <code>selectCursor()</code>.
133+
Al llamar al método <code>read()</code> se devolverá el siguiente elemento del cursor
134+
hasta que no quede ninguno por devolver.
135+
</p>
136+
137+
<p>
138+
El reader usa una conexión separada para que la sentencia no participe en ninguna transacción creada como parte
139+
del proceso del step.
140+
</p>
141+
142+
<p>Cuando se usar un cursor puedes usar una sentencia convencional:</p>
143+
<source><![CDATA[<select id="getEmployee" resultMap="employeeBatchResult">
144+
SELECT id, name, job FROM employees ORDER BY id ASC
145+
</select>]]></source>
146+
147+
<p>A continuación se muestra un ejemplo de configuración:</p>
148+
149+
<source><![CDATA[<bean id="reader" class="org.mybatis.spring.batch.MyBatisCursorItemReader">
150+
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
151+
<property name="queryId" value="getEmployee" />
152+
</bean>]]></source>
153+
154+
</subsection>
155+
121156
<subsection name="MyBatisBatchItemWriter">
122157

123158
<p>

src/site/ja/xdoc/batch.xml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2010-2016 the original author or authors.
4+
Copyright 2010-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.
@@ -105,6 +105,41 @@
105105

106106
</subsection>
107107

108+
<subsection name="MyBatisCursorItemReader">
109+
<p>
110+
This bean is an <code>IteamReader</code> that reads records from a database using a cursor.
111+
</p>
112+
113+
<p>
114+
<span class="label important">NOTE</span> To use this bean you need at least MyBatis 3.4.0 or a newer version.
115+
</p>
116+
117+
<p>
118+
It executes the query specified as the <code>setQueryId</code> property to retrieve requested data
119+
by using the method <code>selectCursor()</code>.
120+
Each time a <code>read()</code> method is called it will return the next element of the cursor until no more
121+
elements are left.
122+
</p>
123+
124+
<p>
125+
The reader will use a separate connection so the select statement does no participate in any transactions created
126+
as part of the step processing.
127+
</p>
128+
129+
<p>When using the cursor you can just execute a regular query:</p>
130+
<source><![CDATA[<select id="getEmployee" resultMap="employeeBatchResult">
131+
SELECT id, name, job FROM employees ORDER BY id ASC
132+
</select>]]></source>
133+
134+
<p>Follows below a sample configuration snippet:</p>
135+
136+
<source><![CDATA[<bean id="reader" class="org.mybatis.spring.batch.MyBatisCursorItemReader">
137+
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
138+
<property name="queryId" value="getEmployee" />
139+
</bean>]]></source>
140+
141+
</subsection>
142+
108143
<subsection name="MyBatisBatchItemWriter">
109144

110145
<p>

src/site/ko/xdoc/batch.xml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2010-2016 the original author or authors.
4+
Copyright 2010-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.
@@ -101,6 +101,41 @@
101101

102102
</subsection>
103103

104+
<subsection name="MyBatisCursorItemReader">
105+
<p>
106+
This bean is an <code>IteamReader</code> that reads records from a database using a cursor.
107+
</p>
108+
109+
<p>
110+
<span class="label important">NOTE</span> To use this bean you need at least MyBatis 3.4.0 or a newer version.
111+
</p>
112+
113+
<p>
114+
It executes the query specified as the <code>setQueryId</code> property to retrieve requested data
115+
by using the method <code>selectCursor()</code>.
116+
Each time a <code>read()</code> method is called it will return the next element of the cursor until no more
117+
elements are left.
118+
</p>
119+
120+
<p>
121+
The reader will use a separate connection so the select statement does no participate in any transactions created
122+
as part of the step processing.
123+
</p>
124+
125+
<p>When using the cursor you can just execute a regular query:</p>
126+
<source><![CDATA[<select id="getEmployee" resultMap="employeeBatchResult">
127+
SELECT id, name, job FROM employees ORDER BY id ASC
128+
</select>]]></source>
129+
130+
<p>Follows below a sample configuration snippet:</p>
131+
132+
<source><![CDATA[<bean id="reader" class="org.mybatis.spring.batch.MyBatisCursorItemReader">
133+
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
134+
<property name="queryId" value="getEmployee" />
135+
</bean>]]></source>
136+
137+
</subsection>
138+
104139
<subsection name="MyBatisBatchItemWriter">
105140

106141
<p>모든 아이템을 배치로 구문을 일괄실행하기 위해 <code>SqlSessionTemplate</code>에서 배치로 작업을 처리하는 <code>ItemWriter</code>이다.

src/site/xdoc/batch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2010-2016 the original author or authors.
4+
Copyright 2010-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.

0 commit comments

Comments
 (0)