public class MongoDBDatastoreProvider extends BaseDatastoreProvider implements org.hibernate.service.spi.Startable, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService
| Constructor and Description |
|---|
MongoDBDatastoreProvider() |
MongoDBDatastoreProvider(com.mongodb.MongoClient mongoClient)
Only used in tests.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTransactionEmulation() |
void |
configure(Map configurationValues) |
protected com.mongodb.MongoClient |
createMongoClient(MongoDBConfiguration config) |
com.mongodb.client.MongoDatabase |
getDatabase() |
Class<? extends GridDialect> |
getDefaultDialect() |
Class<? extends QueryParserService> |
getDefaultQueryParserServiceType() |
Class<? extends SchemaDefiner> |
getSchemaDefinerType() |
void |
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) |
void |
start() |
void |
stop() |
getTransactionCoordinatorBuilderpublic MongoDBDatastoreProvider()
public MongoDBDatastoreProvider(com.mongodb.MongoClient mongoClient)
mongoClient - the client to connect to mongodbpublic void configure(Map configurationValues)
configure in interface org.hibernate.service.spi.Configurablepublic void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareServicepublic Class<? extends GridDialect> getDefaultDialect()
getDefaultDialect in interface DatastoreProviderpublic Class<? extends QueryParserService> getDefaultQueryParserServiceType()
getDefaultQueryParserServiceType in interface DatastoreProvidergetDefaultQueryParserServiceType in class BaseDatastoreProviderpublic Class<? extends SchemaDefiner> getSchemaDefinerType()
getSchemaDefinerType in interface DatastoreProvidergetSchemaDefinerType in class BaseDatastoreProviderpublic boolean allowsTransactionEmulation()
allowsTransactionEmulation in interface DatastoreProviderallowsTransactionEmulation in class BaseDatastoreProviderpublic void start()
start in interface org.hibernate.service.spi.Startableprotected com.mongodb.MongoClient createMongoClient(MongoDBConfiguration config)
public void stop()
stop in interface org.hibernate.service.spi.Stoppablepublic com.mongodb.client.MongoDatabase getDatabase()
Copyright © 2010–2017 Hibernate. All rights reserved.