24
24
import com .mongodb .internal .client .model .bulk .ConcreteClientDeleteManyModel ;
25
25
import com .mongodb .internal .client .model .bulk .ConcreteClientDeleteOneModel ;
26
26
import com .mongodb .internal .client .model .bulk .ConcreteClientInsertOneModel ;
27
- import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedWriteModel ;
27
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedDeleteManyModel ;
28
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedDeleteOneModel ;
29
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedInsertOneModel ;
30
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedReplaceOneModel ;
31
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedUpdateManyModel ;
32
+ import com .mongodb .internal .client .model .bulk .ConcreteClientNamespacedUpdateOneModel ;
28
33
import com .mongodb .internal .client .model .bulk .ConcreteClientReplaceOneModel ;
29
34
import com .mongodb .internal .client .model .bulk .ConcreteClientUpdateManyModel ;
30
35
import com .mongodb .internal .client .model .bulk .ConcreteClientUpdateOneModel ;
@@ -53,7 +58,7 @@ public interface ClientNamespacedWriteModel {
53
58
static <TDocument > ClientNamespacedInsertOneModel insertOne (final MongoNamespace namespace , final TDocument document ) {
54
59
notNull ("namespace" , namespace );
55
60
notNull ("document" , document );
56
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientInsertOneModel (document ));
61
+ return new ConcreteClientNamespacedInsertOneModel (namespace , new ConcreteClientInsertOneModel (document ));
57
62
}
58
63
59
64
/**
@@ -72,7 +77,7 @@ static ClientNamespacedUpdateOneModel updateOne(final MongoNamespace namespace,
72
77
notNull ("namespace" , namespace );
73
78
notNull ("filter" , filter );
74
79
notNull ("update" , update );
75
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateOneModel (filter , update , null , null ));
80
+ return new ConcreteClientNamespacedUpdateOneModel (namespace , new ConcreteClientUpdateOneModel (filter , update , null , null ));
76
81
}
77
82
78
83
/**
@@ -92,7 +97,7 @@ static ClientNamespacedUpdateOneModel updateOne(
92
97
notNull ("filter" , filter );
93
98
notNull ("update" , update );
94
99
notNull ("options" , options );
95
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateOneModel (filter , update , null , options ));
100
+ return new ConcreteClientNamespacedUpdateOneModel (namespace , new ConcreteClientUpdateOneModel (filter , update , null , options ));
96
101
}
97
102
98
103
/**
@@ -112,7 +117,7 @@ static ClientNamespacedUpdateOneModel updateOne(
112
117
notNull ("namespace" , namespace );
113
118
notNull ("filter" , filter );
114
119
notNull ("updatePipeline" , updatePipeline );
115
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateOneModel (filter , null , updatePipeline , null ));
120
+ return new ConcreteClientNamespacedUpdateOneModel (namespace , new ConcreteClientUpdateOneModel (filter , null , updatePipeline , null ));
116
121
}
117
122
118
123
/**
@@ -132,7 +137,7 @@ static ClientNamespacedUpdateOneModel updateOne(
132
137
notNull ("filter" , filter );
133
138
notNull ("updatePipeline" , updatePipeline );
134
139
notNull ("options" , options );
135
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateOneModel (filter , null , updatePipeline , options ));
140
+ return new ConcreteClientNamespacedUpdateOneModel (namespace , new ConcreteClientUpdateOneModel (filter , null , updatePipeline , options ));
136
141
}
137
142
138
143
/**
@@ -151,7 +156,7 @@ static ClientNamespacedUpdateManyModel updateMany(final MongoNamespace namespace
151
156
notNull ("namespace" , namespace );
152
157
notNull ("filter" , filter );
153
158
notNull ("update" , update );
154
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateManyModel (filter , update , null , null ));
159
+ return new ConcreteClientNamespacedUpdateManyModel (namespace , new ConcreteClientUpdateManyModel (filter , update , null , null ));
155
160
}
156
161
157
162
/**
@@ -171,7 +176,7 @@ static ClientNamespacedUpdateManyModel updateMany(
171
176
notNull ("filter" , filter );
172
177
notNull ("update" , update );
173
178
notNull ("options" , options );
174
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateManyModel (filter , update , null , options ));
179
+ return new ConcreteClientNamespacedUpdateManyModel (namespace , new ConcreteClientUpdateManyModel (filter , update , null , options ));
175
180
}
176
181
177
182
/**
@@ -191,7 +196,7 @@ static ClientNamespacedUpdateManyModel updateMany(
191
196
notNull ("namespace" , namespace );
192
197
notNull ("filter" , filter );
193
198
notNull ("updatePipeline" , updatePipeline );
194
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateManyModel (filter , null , updatePipeline , null ));
199
+ return new ConcreteClientNamespacedUpdateManyModel (namespace , new ConcreteClientUpdateManyModel (filter , null , updatePipeline , null ));
195
200
}
196
201
197
202
/**
@@ -211,7 +216,7 @@ static ClientNamespacedUpdateManyModel updateMany(
211
216
notNull ("filter" , filter );
212
217
notNull ("updatePipeline" , updatePipeline );
213
218
notNull ("options" , options );
214
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientUpdateManyModel (filter , null , updatePipeline , options ));
219
+ return new ConcreteClientNamespacedUpdateManyModel (namespace , new ConcreteClientUpdateManyModel (filter , null , updatePipeline , options ));
215
220
}
216
221
217
222
/**
@@ -231,7 +236,7 @@ static <TDocument> ClientNamespacedReplaceOneModel replaceOne(final MongoNamespa
231
236
notNull ("namespace" , namespace );
232
237
notNull ("filter" , filter );
233
238
notNull ("replacement" , replacement );
234
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientReplaceOneModel (filter , replacement , null ));
239
+ return new ConcreteClientNamespacedReplaceOneModel (namespace , new ConcreteClientReplaceOneModel (filter , replacement , null ));
235
240
}
236
241
237
242
/**
@@ -252,7 +257,7 @@ static <TDocument> ClientNamespacedReplaceOneModel replaceOne(
252
257
notNull ("filter" , filter );
253
258
notNull ("replacement" , replacement );
254
259
notNull ("options" , options );
255
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientReplaceOneModel (filter , replacement , options ));
260
+ return new ConcreteClientNamespacedReplaceOneModel (namespace , new ConcreteClientReplaceOneModel (filter , replacement , options ));
256
261
}
257
262
258
263
/**
@@ -268,7 +273,7 @@ static <TDocument> ClientNamespacedReplaceOneModel replaceOne(
268
273
static ClientNamespacedDeleteOneModel deleteOne (final MongoNamespace namespace , final Bson filter ) {
269
274
notNull ("namespace" , namespace );
270
275
notNull ("filter" , filter );
271
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientDeleteOneModel (filter , null ));
276
+ return new ConcreteClientNamespacedDeleteOneModel (namespace , new ConcreteClientDeleteOneModel (filter , null ));
272
277
}
273
278
274
279
/**
@@ -284,7 +289,7 @@ static ClientNamespacedDeleteOneModel deleteOne(final MongoNamespace namespace,
284
289
notNull ("namespace" , namespace );
285
290
notNull ("filter" , filter );
286
291
notNull ("options" , options );
287
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientDeleteOneModel (filter , options ));
292
+ return new ConcreteClientNamespacedDeleteOneModel (namespace , new ConcreteClientDeleteOneModel (filter , options ));
288
293
}
289
294
290
295
/**
@@ -300,7 +305,7 @@ static ClientNamespacedDeleteOneModel deleteOne(final MongoNamespace namespace,
300
305
static ClientNamespacedDeleteManyModel deleteMany (final MongoNamespace namespace , final Bson filter ) {
301
306
notNull ("namespace" , namespace );
302
307
notNull ("filter" , filter );
303
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientDeleteManyModel (filter , null ));
308
+ return new ConcreteClientNamespacedDeleteManyModel (namespace , new ConcreteClientDeleteManyModel (filter , null ));
304
309
}
305
310
306
311
/**
@@ -316,6 +321,6 @@ static ClientNamespacedDeleteManyModel deleteMany(final MongoNamespace namespace
316
321
notNull ("namespace" , namespace );
317
322
notNull ("filter" , filter );
318
323
notNull ("options" , options );
319
- return new ConcreteClientNamespacedWriteModel (namespace , new ConcreteClientDeleteManyModel (filter , options ));
324
+ return new ConcreteClientNamespacedDeleteManyModel (namespace , new ConcreteClientDeleteManyModel (filter , options ));
320
325
}
321
326
}
0 commit comments