@@ -65,7 +65,7 @@ public interface MongoDatabase {
6565 WriteConcern getWriteConcern ();
6666
6767 /**
68- * Get the read concern for the MongoCollection .
68+ * Get the read concern for the MongoDatabase .
6969 *
7070 * @return the {@link com.mongodb.ReadConcern}
7171 * @since 3.2
@@ -76,31 +76,31 @@ public interface MongoDatabase {
7676 /**
7777 * Create a new MongoDatabase instance with a different codec registry.
7878 *
79- * @param codecRegistry the new {@link org.bson.codecs.configuration.CodecRegistry} for the collection
79+ * @param codecRegistry the new {@link org.bson.codecs.configuration.CodecRegistry} for the database
8080 * @return a new MongoDatabase instance with the different codec registry
8181 */
8282 MongoDatabase withCodecRegistry (CodecRegistry codecRegistry );
8383
8484 /**
8585 * Create a new MongoDatabase instance with a different read preference.
8686 *
87- * @param readPreference the new {@link com.mongodb.ReadPreference} for the collection
87+ * @param readPreference the new {@link com.mongodb.ReadPreference} for the database
8888 * @return a new MongoDatabase instance with the different readPreference
8989 */
9090 MongoDatabase withReadPreference (ReadPreference readPreference );
9191
9292 /**
9393 * Create a new MongoDatabase instance with a different write concern.
9494 *
95- * @param writeConcern the new {@link com.mongodb.WriteConcern} for the collection
95+ * @param writeConcern the new {@link com.mongodb.WriteConcern} for the database
9696 * @return a new MongoDatabase instance with the different writeConcern
9797 */
9898 MongoDatabase withWriteConcern (WriteConcern writeConcern );
9999
100100 /**
101101 * Create a new MongoDatabase instance with a different read concern.
102102 *
103- * @param readConcern the new {@link ReadConcern} for the collection
103+ * @param readConcern the new {@link ReadConcern} for the database
104104 * @return a new MongoDatabase instance with the different ReadConcern
105105 * @since 3.2
106106 * @mongodb.server.release 3.2
0 commit comments