|
31 | 31 | <p> |
32 | 32 | 마이바티스 스프링 연동모듈의 1.1.0버전에서는 스프링 배치 애플리케이션을 만들기 위해 두개의 빈을 제공한다. |
33 | 33 | 두개의 빈은 <code>MyBatisPagingItemReader</code> 와 <code>MyBatisCursorItemReader</code> 와 <code>MyBatisBatchItemWriter</code>이다. |
34 | | - Also, As of version 2.0.0 provides three builder classes for supporting the Java Configuration: the <code>MyBatisPagingItemReaderBuilder</code>, |
35 | | - the <code>MyBatisCursorItemReaderBuilder</code> and the <code>MyBatisBatchItemWriterBuilder</code>. |
| 34 | + |
| 35 | + 또한 2.0.0 버전에서는 Java Configuration 을 지원하는 다음의 세 가지 Builder class 를 제공한다. |
| 36 | + <code>MyBatisPagingItemReaderBuilder</code>, <code>MyBatisCursorItemReaderBuilder</code> 그리고 <code>MyBatisBatchItemWriterBuilder</code> 이다. |
36 | 37 | </p> |
37 | 38 |
|
38 | 39 | <p><span class="label important">중요</span> 이 문서는 <a href="http://static.springsource.org/spring-batch/">스프링 배치</a>에 대한 것으로 |
@@ -140,31 +141,28 @@ public Map<String, Object> datesParameters( |
140 | 141 |
|
141 | 142 | <subsection name="MyBatisCursorItemReader"> |
142 | 143 | <p> |
143 | | - This bean is an <code>IteamReader</code> that reads records from a database using a cursor. |
| 144 | + 이 빈은 cursor 를 사용하여 데이터베이스에서 레코드를 읽는 <code>IteamReader</code> 이다. |
144 | 145 | </p> |
145 | 146 |
|
146 | 147 | <p> |
147 | | - <span class="label important">NOTE</span> To use this bean you need at least MyBatis 3.4.0 or a newer version. |
| 148 | + <span class="label important">중요</span> 이 빈을 사용하려면 최소한 MyBatis 3.4.0 이나 그 이상이어야 한다. |
148 | 149 | </p> |
149 | 150 |
|
150 | 151 | <p> |
151 | | - It executes the query specified as the <code>setQueryId</code> property to retrieve requested data |
152 | | - by using the method <code>selectCursor()</code>. |
153 | | - Each time a <code>read()</code> method is called it will return the next element of the cursor until no more |
154 | | - elements are left. |
| 152 | + <code>setQueryId</code> 속성으로 지정된 쿼리를 실행하여 <code>selectCursor()</code> 메서드를 사용하여 요청 된 데이터를 검색한다. |
| 153 | + <code>read()</code> 메서드가 호출 될 때마다 요소가 더 이상 남아 있지 않을 때까지 cursor 의 다음 요소를 반환한다. |
155 | 154 | </p> |
156 | 155 |
|
157 | 156 | <p> |
158 | | - The reader will use a separate connection so the select statement does no participate in any transactions created |
159 | | - as part of the step processing. |
| 157 | + reader 는 별도의 connection 을 사용하므로 select 문은 step processing 일부로 생성된 트랜잭션에 속하지 않는다. |
160 | 158 | </p> |
161 | 159 |
|
162 | | - <p>When using the cursor you can just execute a regular query:</p> |
| 160 | + <p>cursor 를 사용할 때 다음과 같이 일반 쿼리를 실행할 수 있다.</p> |
163 | 161 | <source><![CDATA[<select id="getEmployee" resultMap="employeeBatchResult"> |
164 | 162 | SELECT id, name, job FROM employees ORDER BY id ASC |
165 | 163 | </select>]]></source> |
166 | 164 |
|
167 | | - <p>Follows below a sample configuration snippet:</p> |
| 165 | + <p>아래는 샘플 설정이다.</p> |
168 | 166 |
|
169 | 167 | <source><![CDATA[<bean id="reader" class="org.mybatis.spring.batch.MyBatisCursorItemReader"> |
170 | 168 | <property name="sqlSessionFactory" ref="sqlSessionFactory" /> |
|
0 commit comments