File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,15 @@ public void setMode(final Mode mode) {
121
121
this .mode = mode ;
122
122
}
123
123
124
+ /**
125
+ * Get the operating {@link Mode} of the item writer.
126
+ * @return the operating mode
127
+ * @since 5.1
128
+ */
129
+ public Mode getMode () {
130
+ return mode ;
131
+ }
132
+
124
133
/**
125
134
* Set the {@link MongoOperations} to be used to save items to be written.
126
135
* @param template the template implementation to be used.
@@ -146,6 +155,15 @@ public void setCollection(String collection) {
146
155
this .collection = collection ;
147
156
}
148
157
158
+ /**
159
+ * Get the Mongo collection name.
160
+ * @return the collection name
161
+ * @since 5.1
162
+ */
163
+ public String getCollection () {
164
+ return collection ;
165
+ }
166
+
149
167
/**
150
168
* If a transaction is active, buffer items to be written just before commit.
151
169
* Otherwise write items using the provided template.
You can’t perform that action at this time.
0 commit comments