public class MongoDatastore extends AbstractDatastore implements MappingContextListener, Closeable, StatelessDatastore, MultipleConnectionSourceCapableDatastore, MultiTenantCapableDatastore, TransactionCapableDatastore
A Datastore implementation for the Mongo document store.
| Constructor and description |
|---|
MongoDatastore(ConnectionSources<MongoClient, MongoConnectionSourceSettings> connectionSources, MongoMappingContext mappingContext, ConfigurableApplicationEventPublisher eventPublisher)Configures a new MongoDatastore for the given arguments |
MongoDatastore(ConnectionSources<MongoClient, MongoConnectionSourceSettings> connectionSources, ConfigurableApplicationEventPublisher eventPublisher, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, PropertyResolver configuration, MongoMappingContext mappingContext, ConfigurableApplicationEventPublisher eventPublisher)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, Package packages)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, PropertyResolver configuration, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, PropertyResolver configuration, Package packages)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClient mongoClient, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClientSettings.Builder clientOptions, PropertyResolver configuration, MongoMappingContext mappingContext, ConfigurableApplicationEventPublisher eventPublisher)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoClientSettings.Builder clientOptions, PropertyResolver configuration, MongoMappingContext mappingContext)Configures a new MongoDatastore for the given arguments |
MongoDatastore(PropertyResolver configuration, MongoMappingContext mappingContext, ConfigurableApplicationEventPublisher eventPublisher)Configures a new MongoDatastore for the given arguments |
MongoDatastore(PropertyResolver configuration, MongoConnectionSourceFactory connectionSourceFactory, ConfigurableApplicationEventPublisher eventPublisher, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(PropertyResolver configuration, MongoMappingContext mappingContext)Configures a new MongoDatastore for the given arguments |
MongoDatastore(PropertyResolver configuration, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(Map<String, Object> configuration, ConfigurableApplicationEventPublisher eventPublisher, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(Map<String, Object> configuration, Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(Map<String, Object> configuration)Creates a MongoDatastore with the given configuration |
MongoDatastore(Map<String, Object> configuration, MongoMappingContext mappingContext)Configures a new MongoDatastore for the given arguments |
MongoDatastore(MongoMappingContext mappingContext)Configures a new MongoDatastore for the given arguments |
MongoDatastore(Class classes)Configures a new MongoDatastore for the given arguments |
MongoDatastore(Package packagesToScan)Construct a Mongo datastore scanning the given packages |
MongoDatastore(Package packageToScan)Construct a Mongo datastore scanning the given package |
MongoDatastore(PropertyResolver configuration, Package packagesToScan)Construct a Mongo datastore scanning the given packages |
MongoDatastore(Map<String, Object> configuration, Package packagesToScan)Construct a Mongo datastore scanning the given packages |
MongoDatastore(PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, Package packagesToScan)Construct a Mongo datastore scanning the given packages |
| Methods inherited from class | Name |
|---|---|
class AbstractDatastore |
connect, connect, connectStateless, destroy, equals, getApplicationContext, getApplicationEventPublisher, getClass, getCurrentSession, getMappingContext, getService, getServices, hasCurrentSession, hashCode, isSchemaless, notify, notifyAll, retrieveSession, retrieveSession, setApplicationContext, toString, wait, wait, wait, withSession |
Configures a new MongoDatastore for the given arguments
connectionSources - The ConnectionSources to useeventPublisher - The Spring ApplicationContextmappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
connectionSources - The ConnectionSources to useeventPublisher - The Spring ApplicationContextclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instanceeventPublisher - The Spring ApplicationContextmappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instanceeventPublisher - The Spring ApplicationContextclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instanceeventPublisher - The Spring ApplicationContextpackages - The packages to scanConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instanceclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instancepackages - The packages to scanConfigures a new MongoDatastore for the given arguments
mongoClient - The MongoClient instanceclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
clientOptions - The MongoClientSettings instanceconfiguration - The configurationeventPublisher - The Spring ApplicationContextmappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
clientOptions - The MongoClientSettings instanceconfiguration - The configurationmappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
configuration - The configuration for the datastoreeventPublisher - The Spring ApplicationContextmappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
configuration - The configuration for the datastoreeventPublisher - The Spring ApplicationContextconnectionSourceFactory - The connection source factory to useclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
configuration - The configuration for the datastoreeventPublisher - The Spring ApplicationContextclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
configuration - The configuration for the datastoremappingContext - The mapping contextConfigures a new MongoDatastore for the given arguments
configuration - The configuration for the datastoreclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
configuration - The configurationeventPublisher - The event publisherclasses - The persistent classesConfigures a new MongoDatastore for the given arguments
configuration - The configurationclasses - The persistent classesCreates a MongoDatastore with the given configuration
configuration - The configurationConfigures a new MongoDatastore for the given arguments
configuration - The configurationmappingContext - The MongoMappingContextConfigures a new MongoDatastore for the given arguments
mappingContext - The MongoMappingContextConfigures a new MongoDatastore for the given arguments
classes - The persistent classesConstruct a Mongo datastore scanning the given packages
packagesToScan - The packages to scanConstruct a Mongo datastore scanning the given package
packageToScan - The packages to scanConstruct a Mongo datastore scanning the given packages
configuration - The configurationpackagesToScan - The packages to scanConstruct a Mongo datastore scanning the given packages
configuration - The configurationpackagesToScan - The packages to scanConstruct a Mongo datastore scanning the given packages
configuration - The configurationeventPublisher - The event publisherpackagesToScan - The packages to scanBuilds the MongoDB index for this datastore
Creates the connection sources for an existing MongoClient
mongoClient - The MongoClientconfiguration - The configurationmappingContext - The MongoMappingContext
Obtain the raw MongoCollection for the given entity
entity - The entityGets the default collection name for the given entity
entity - The entity
Obtains a PersistentEntityCodec for the given entity
entity - The entityObtains a PersistentEntityCodec for the given entity
entityClass - The entity class
Runs the initialization sequence
Indexes any properties that are mapped with index:true
entity - The entitySets any additional codec providers
codecProviders - The CodecProvider instancesSets any additional codec registries
codecRegistries - The CodecRegistry instancesSets any additional codecs
codecs - The Codec instancesThe message source used for validation messages
messageSource - The message source