Skip to content

Commit 92014e8

Browse files
committed
[imports] Correct spring batch imports in javadocs and documentation as moved
1 parent 9de4f1f commit 92014e8

File tree

9 files changed

+21
-20
lines changed

9 files changed

+21
-20
lines changed

src/main/java/org/mybatis/spring/batch/MyBatisPagingItemReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
import org.springframework.batch.infrastructure.item.database.AbstractPagingItemReader;
3232

3333
/**
34-
* {@code org.springframework.batch.item.ItemReader} for reading database records using MyBatis in a paging fashion.
34+
* {@code org.springframework.batch.infrastructure.item.ItemReader} for reading database records using MyBatis in a
35+
* paging fashion.
3536
* <p>
3637
* Provided to facilitate the migration from Spring-Batch iBATIS 2 page item readers to MyBatis 3.
3738
*

src/main/java/org/mybatis/spring/batch/builder/MyBatisCursorItemReaderBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -104,15 +104,15 @@ public MyBatisCursorItemReaderBuilder<T> parameterValuesSupplier(
104104
}
105105

106106
/**
107-
* Configure if the state of the {@link org.springframework.batch.item.ItemStreamSupport} should be persisted within
108-
* the {@link org.springframework.batch.item.ExecutionContext} for restart purposes.
107+
* Configure if the state of the {@link org.springframework.batch.infrastructure.item.ItemStreamSupport} should be
108+
* persisted within the {@link org.springframework.batch.infrastructure.item.ExecutionContext} for restart purposes.
109109
*
110110
* @param saveState
111111
* defaults to true
112112
*
113113
* @return The current instance of the builder.
114114
*
115-
* @see org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader#setSaveState(boolean)
115+
* @see org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader#setSaveState(boolean)
116116
*/
117117
public MyBatisCursorItemReaderBuilder<T> saveState(boolean saveState) {
118118
this.saveState = saveState;
@@ -127,7 +127,7 @@ public MyBatisCursorItemReaderBuilder<T> saveState(boolean saveState) {
127127
*
128128
* @return The current instance of the builder.
129129
*
130-
* @see org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader#setMaxItemCount(int)
130+
* @see org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader#setMaxItemCount(int)
131131
*/
132132
public MyBatisCursorItemReaderBuilder<T> maxItemCount(int maxItemCount) {
133133
this.maxItemCount = maxItemCount;

src/main/java/org/mybatis/spring/batch/builder/MyBatisPagingItemReaderBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -112,23 +112,23 @@ public MyBatisPagingItemReaderBuilder<T> parameterValuesSupplier(
112112
*
113113
* @return this instance for method chaining
114114
*
115-
* @see org.springframework.batch.item.database.AbstractPagingItemReader#setPageSize(int)
115+
* @see org.springframework.batch.infrastructure.item.database.AbstractPagingItemReader#setPageSize(int)
116116
*/
117117
public MyBatisPagingItemReaderBuilder<T> pageSize(int pageSize) {
118118
this.pageSize = pageSize;
119119
return this;
120120
}
121121

122122
/**
123-
* Configure if the state of the {@link org.springframework.batch.item.ItemStreamSupport} should be persisted within
124-
* the {@link org.springframework.batch.item.ExecutionContext} for restart purposes.
123+
* Configure if the state of the {@link org.springframework.batch.infrastructure.item.ItemStreamSupport} should be
124+
* persisted within the {@link org.springframework.batch.infrastructure.item.ExecutionContext} for restart purposes.
125125
*
126126
* @param saveState
127127
* defaults to true
128128
*
129129
* @return The current instance of the builder.
130130
*
131-
* @see org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader#setSaveState(boolean)
131+
* @see org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader#setSaveState(boolean)
132132
*/
133133
public MyBatisPagingItemReaderBuilder<T> saveState(boolean saveState) {
134134
this.saveState = saveState;
@@ -143,7 +143,7 @@ public MyBatisPagingItemReaderBuilder<T> saveState(boolean saveState) {
143143
*
144144
* @return The current instance of the builder.
145145
*
146-
* @see org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader#setMaxItemCount(int)
146+
* @see org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader#setMaxItemCount(int)
147147
*/
148148
public MyBatisPagingItemReaderBuilder<T> maxItemCount(int maxItemCount) {
149149
this.maxItemCount = maxItemCount;

src/main/java/org/mybatis/spring/batch/builder/package-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616
/**
17-
* Contains classes to builder classes for {@link org.springframework.batch.item.ItemReader} and
18-
* {@link org.springframework.batch.item.ItemWriter}.
17+
* Contains classes to builder classes for {@link org.springframework.batch.infrastructure.item.ItemReader} and
18+
* {@link org.springframework.batch.infrastructure.item.ItemWriter}.
1919
*
2020
* @since 2.0.0
2121
*/

src/site/es/markdown/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Entonces en la configuración de spring habrá un `CompositeItemWriter` que usar
271271
Fijate que el *InteractionMetadata* es una asociacióin en el ejemplo por lo que debe ser escrita antes para que la Interaction pueda recibir la clave generada.
272272

273273
```xml
274-
<bean id="interactionsItemWriter" class="org.springframework.batch.item.support.CompositeItemWriter">
274+
<bean id="interactionsItemWriter" class="org.springframework.batch.infrastructure.item.support.CompositeItemWriter">
275275
<property name="delegates">
276276
<list>
277277
<ref bean="visitorInteractionsWriter"/>

src/site/ja/markdown/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public class Interaction {
267267
この例では *Interaction* をアップデートするためのキーを取得するため、*InteractionMetadata* を先に書き込む必要があります。
268268

269269
```xml
270-
<bean id="interactionsItemWriter" class="org.springframework.batch.item.support.CompositeItemWriter">
270+
<bean id="interactionsItemWriter" class="org.springframework.batch.infrastructure.item.support.CompositeItemWriter">
271271
<property name="delegates">
272272
<list>
273273
<ref bean="visitorInteractionsWriter"/>

src/site/ko/markdown/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public class Interaction {
274274
그리고 스프링 설정에는 각각의 레코드를 처리하기 위해 특별히 설정된 전용(delegates) writer를 사용하는 `CompositeItemWriter`가 있다.
275275

276276
```xml
277-
<bean id="interactionsItemWriter" class="org.springframework.batch.item.support.CompositeItemWriter">
277+
<bean id="interactionsItemWriter" class="org.springframework.batch.infrastructure.item.support.CompositeItemWriter">
278278
<property name="delegates">
279279
<list>
280280
<ref bean="visitorInteractionsWriter"/>

src/site/markdown/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Then in the spring configuration there will be a `CompositeItemWriter` that will
280280
Note that as the *InteractionMetadata* is an association in the example it will need to be written first so that Interaction can have the updated key.
281281

282282
```xml
283-
<bean id="interactionsItemWriter" class="org.springframework.batch.item.support.CompositeItemWriter">
283+
<bean id="interactionsItemWriter" class="org.springframework.batch.infrastructure.item.support.CompositeItemWriter">
284284
<property name="delegates">
285285
<list>
286286
<ref bean="visitorInteractionsWriter"/>

src/site/zh_CN/markdown/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public class Interaction {
264264
在 Spring 配置中要配置一个 `CompositeItemWriter`,它将会将写入操作委托到特定种类的 writer 上面去。注意 *InteractionMetadata* 在例子里面是一个关联,它需要首先被写入,这样 Interaction 才能获得更新之后的键。
265265

266266
```xml
267-
<bean id="interactionsItemWriter" class="org.springframework.batch.item.support.CompositeItemWriter">
267+
<bean id="interactionsItemWriter" class="org.springframework.batch.infrastructure.item.support.CompositeItemWriter">
268268
<property name="delegates">
269269
<list>
270270
<ref bean="visitorInteractionsWriter"/>

0 commit comments

Comments
 (0)