Class DefaultMongoDatabaseNameProvider
java.lang.Object
io.micronaut.data.mongodb.operations.DefaultMongoDatabaseNameProvider
- All Implemented Interfaces:
- MongoDatabaseNameProvider
@Internal
public final class DefaultMongoDatabaseNameProvider
extends Object
implements MongoDatabaseNameProvider
Internal implementation of 
MongoDatabaseNameProvider.- Since:
- 3.9.0
- Author:
- Denis Stepanov
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMongoDatabaseNameProvider(io.micronaut.context.BeanContext beanContext, @Nullable String server, RuntimeEntityRegistry runtimeEntityRegistry, @Nullable String defaultDatabaseName, @Nullable SchemaTenantResolver tenantResolver) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.mongodb.operations.MongoDatabaseNameProviderprovide
- 
Constructor Details- 
DefaultMongoDatabaseNameProviderpublic DefaultMongoDatabaseNameProvider(io.micronaut.context.BeanContext beanContext, @Nullable @Nullable String server, RuntimeEntityRegistry runtimeEntityRegistry, @Nullable @Nullable String defaultDatabaseName, @Nullable @Nullable SchemaTenantResolver tenantResolver) 
 
- 
- 
Method Details- 
provideDescription copied from interface:MongoDatabaseNameProviderProvides the database name based on the persistent entity type.- Specified by:
- providein interface- MongoDatabaseNameProvider
- Parameters:
- type- The entity type
- Returns:
- The collection name
 
- 
provideDescription copied from interface:MongoDatabaseNameProviderProvides the database name based on the persistent entity and the repository class.- Specified by:
- providein interface- MongoDatabaseNameProvider
- Parameters:
- persistentEntity- The persistent entity
- repositoryClass- The repository class used
- Returns:
- The collection name
 
 
-