Class DefaultMongoCollectionNameProvider
java.lang.Object
io.micronaut.data.mongodb.operations.DefaultMongoCollectionNameProvider
- All Implemented Interfaces:
MongoCollectionNameProvider
@Singleton
@Requires(missingBeans=MongoCollectionNameProvider.class)
@Internal
public final class DefaultMongoCollectionNameProvider
extends Object
implements MongoCollectionNameProvider
Default implementation of
MongoCollectionNameProvider
.- Since:
- 3.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprovide
(PersistentEntity persistentEntity) Provides the MongoDB collection name based on thePersistentEntity
.
-
Constructor Details
-
DefaultMongoCollectionNameProvider
public DefaultMongoCollectionNameProvider()
-
-
Method Details
-
provide
Description copied from interface:MongoCollectionNameProvider
Provides the MongoDB collection name based on thePersistentEntity
.- Specified by:
provide
in interfaceMongoCollectionNameProvider
- Parameters:
persistentEntity
- The persistent entity that is associated to the collection- Returns:
- The collection name
-