@@ -52,8 +52,8 @@ public abstract class DB {
52
52
_obedientCommands .add ("geowalk" );
53
53
_obedientCommands .add ("text" );
54
54
_obedientCommands .add ("parallelcollectionscan" );
55
- _obedientCommands .add ("listIndexes " );
56
- _obedientCommands .add ("listCollections " );
55
+ _obedientCommands .add ("listindexes " );
56
+ _obedientCommands .add ("listcollections " );
57
57
}
58
58
59
59
/**
@@ -119,10 +119,10 @@ ReadPreference getCommandReadPreference(DBObject command, ReadPreference request
119
119
120
120
/**
121
121
* <p>Starts a new 'consistent request'</p>.
122
- *
122
+ *
123
123
* <p>Following this call and until {@link com.mongodb.DB#requestDone()} is called, all db operations will use the same underlying
124
124
* connection.</p>
125
- *
125
+ *
126
126
* @deprecated The main use case for this method is to ensure that applications can read their own unacknowledged writes,
127
127
* but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to
128
128
* ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is
@@ -156,8 +156,8 @@ ReadPreference getCommandReadPreference(DBObject command, ReadPreference request
156
156
public abstract void requestEnsureConnection ();
157
157
158
158
/**
159
- * <p>Gets a collection with a given name. If the collection does not exist, a new collection is created.</p>
160
- *
159
+ * <p>Gets a collection with a given name. If the collection does not exist, a new collection is created.</p>
160
+ *
161
161
* <p>This class is NOT part of the public API. Be prepared for non-binary compatible changes in minor releases.</p>
162
162
*
163
163
* @param name the name of the collection
@@ -177,15 +177,15 @@ public DBCollection getCollection( String name ){
177
177
}
178
178
179
179
/**
180
- * <p>Creates a collection with a given name and options. If the collection already exists, this throws a
180
+ * <p>Creates a collection with a given name and options. If the collection already exists, this throws a
181
181
* {@code CommandFailureException}.</p>
182
182
*
183
183
* <p>Possible options:</p>
184
- * <ul>
185
- * <li> <b>capped</b> ({@code boolean}) - Enables a collection cap. False by default. If enabled,
186
- * you must specify a size parameter. </li>
187
- * <li> <b>size</b> ({@code int}) - If capped is true, size specifies a maximum size in bytes for the capped collection. When
188
- * capped is false, you may use size to preallocate space. </li>
184
+ * <ul>
185
+ * <li> <b>capped</b> ({@code boolean}) - Enables a collection cap. False by default. If enabled,
186
+ * you must specify a size parameter. </li>
187
+ * <li> <b>size</b> ({@code int}) - If capped is true, size specifies a maximum size in bytes for the capped collection. When
188
+ * capped is false, you may use size to preallocate space. </li>
189
189
* <li> <b>max</b> ({@code int}) - Optional. Specifies a maximum "cap" in number of documents for capped collections. You must
190
190
* also specify size when specifying max. </li>
191
191
* </ul>
@@ -262,9 +262,9 @@ public CommandResult command(final DBObject cmd, final DBEncoder encoder) {
262
262
}
263
263
264
264
/**
265
- * Executes a database command. This method calls
266
- * {@link #command(com.mongodb.DBObject, int, com.mongodb.ReadPreference, com.mongodb.DBEncoder) } with the database default read
267
- * preference. The only option used by this method was "slave ok", therefore this method has been replaced with
265
+ * Executes a database command. This method calls
266
+ * {@link #command(com.mongodb.DBObject, int, com.mongodb.ReadPreference, com.mongodb.DBEncoder) } with the database default read
267
+ * preference. The only option used by this method was "slave ok", therefore this method has been replaced with
268
268
* {@link #command(DBObject, ReadPreference, DBEncoder)}.
269
269
*
270
270
* @param cmd {@code DBObject} representation the command to be executed
@@ -300,7 +300,7 @@ public CommandResult command( final DBObject cmd , final int options, final Read
300
300
}
301
301
302
302
/**
303
- * Executes a database command. The only option used by this method was "slave ok", therefore this method has been replaced with
303
+ * Executes a database command. The only option used by this method was "slave ok", therefore this method has been replaced with
304
304
* {@link #command(DBObject, ReadPreference, DBEncoder)}.
305
305
*
306
306
* @param cmd A {@code DBObject} representation the command to be executed
@@ -583,10 +583,10 @@ public CommandResult getLastError(final com.mongodb.WriteConcern concern) {
583
583
/**
584
584
* Returns the error status of the last operation on the current connection.
585
585
*
586
- * @param w when running with replication, this is the number of servers to replicate to before returning. A {@code w} value
587
- * of {@code 1} indicates the primary only. A {@code w} value of {@code 2} includes the primary and at least one
588
- * secondary, etc. In place of a number, you may also set {@code w} to majority to indicate that the command should
589
- * wait until the latest write propagates to a majority of replica set members. If using {@code w},
586
+ * @param w when running with replication, this is the number of servers to replicate to before returning. A {@code w} value
587
+ * of {@code 1} indicates the primary only. A {@code w} value of {@code 2} includes the primary and at least one
588
+ * secondary, etc. In place of a number, you may also set {@code w} to majority to indicate that the command should
589
+ * wait until the latest write propagates to a majority of replica set members. If using {@code w},
590
590
* you should also use {@code wtimeout}. Specifying a value for {@code w} without also providing a {@code wtimeout} may
591
591
* cause {@code getLastError} to block indefinitely.
592
592
* @param wtimeout a value in milliseconds that controls how long to wait for write propagation to complete. If replication does not
0 commit comments