public class MongoDBConfiguration extends DocumentStoreConfiguration
MongoDBDatastoreProvider.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ASSOCIATION_STORE |
static int |
DEFAULT_TIMEOUT
The default value used to set the timeout during the connection to the MongoDB instance This value is set in
milliseconds.
|
static com.mongodb.WriteConcern |
DEFAULT_WRITE_CONCERN
The default value used to set up the acknowledgement of write operations.
|
| Constructor and Description |
|---|
MongoDBConfiguration(Map<?,?> configurationValues) |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.MongoClientOptions |
buildOptions()
Create a
MongoClientOptions using the MongoDBConfiguration. |
AssociationDocumentType |
getAssociationDocumentStorage() |
getAssociationStorageStrategy, getDatabaseName, getHost, getPassword, getPort, getUsername, isCreateDatabasepublic static final com.mongodb.WriteConcern DEFAULT_WRITE_CONCERN
MongoDBProperties.WRITE_CONCERNpublic static final String DEFAULT_ASSOCIATION_STORE
public static final int DEFAULT_TIMEOUT
public MongoDBConfiguration(Map<?,?> configurationValues)
public AssociationDocumentType getAssociationDocumentStorage()
MongoDBProperties.ASSOCIATION_DOCUMENT_STORAGEpublic com.mongodb.MongoClientOptions buildOptions()
MongoClientOptions using the MongoDBConfiguration.MongoClientOptions corresponding to the MongoDBConfigurationCopyright © 2010-2014 Hibernate. All Rights Reserved.