The `getName` method in the `com.mongodb.DBCollection` class is used to retrieve the name of a MongoDB collection. It returns a string value representing the name of the collection as specified during its creation. This method is commonly used when working with MongoDB collections in Java to identify and reference the specific collection by its name.
Java DBCollection.getName - 23 examples found. These are the top rated real world Java examples of com.mongodb.DBCollection.getName extracted from open source projects. You can rate examples to help us improve the quality of examples.