@@ -65,7 +65,7 @@ public interface MongoDatabase {
65
65
WriteConcern getWriteConcern ();
66
66
67
67
/**
68
- * Get the read concern for the MongoCollection .
68
+ * Get the read concern for the MongoDatabase .
69
69
*
70
70
* @return the {@link com.mongodb.ReadConcern}
71
71
* @since 3.2
@@ -76,31 +76,31 @@ public interface MongoDatabase {
76
76
/**
77
77
* Create a new MongoDatabase instance with a different codec registry.
78
78
*
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
80
80
* @return a new MongoDatabase instance with the different codec registry
81
81
*/
82
82
MongoDatabase withCodecRegistry (CodecRegistry codecRegistry );
83
83
84
84
/**
85
85
* Create a new MongoDatabase instance with a different read preference.
86
86
*
87
- * @param readPreference the new {@link com.mongodb.ReadPreference} for the collection
87
+ * @param readPreference the new {@link com.mongodb.ReadPreference} for the database
88
88
* @return a new MongoDatabase instance with the different readPreference
89
89
*/
90
90
MongoDatabase withReadPreference (ReadPreference readPreference );
91
91
92
92
/**
93
93
* Create a new MongoDatabase instance with a different write concern.
94
94
*
95
- * @param writeConcern the new {@link com.mongodb.WriteConcern} for the collection
95
+ * @param writeConcern the new {@link com.mongodb.WriteConcern} for the database
96
96
* @return a new MongoDatabase instance with the different writeConcern
97
97
*/
98
98
MongoDatabase withWriteConcern (WriteConcern writeConcern );
99
99
100
100
/**
101
101
* Create a new MongoDatabase instance with a different read concern.
102
102
*
103
- * @param readConcern the new {@link ReadConcern} for the collection
103
+ * @param readConcern the new {@link ReadConcern} for the database
104
104
* @return a new MongoDatabase instance with the different ReadConcern
105
105
* @since 3.2
106
106
* @mongodb.server.release 3.2
0 commit comments