public interface MongoDBGlobalContext extends DocumentStoreGlobalContext<MongoDBGlobalContext,MongoDBEntityContext>
| Modifier and Type | Method and Description |
|---|---|
MongoDBGlobalContext |
associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBGlobalContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be applied when performing read operations against the datastore.
|
MongoDBGlobalContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations against the
datastore. |
MongoDBGlobalContext |
writeConcern(WriteConcernType writeConcern)
Defines the type of write concern to be applied when performing write operations against the datastore.
|
associationStorageentityMongoDBGlobalContext writeConcern(WriteConcernType writeConcern)
writeConcern - the write concern typehttp://docs.mongodb.org/manual/core/write-concern/MongoDBGlobalContext writeConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern implementation to be applied when performing write operations against the
datastore. Either use this option or writeConcern(WriteConcernType) but not both at the same type.writeConcern - the write concernMongoDBGlobalContext readPreference(ReadPreferenceType readPreference)
readPreference - the read preference typehttp://docs.mongodb.org/manual/core/read-preference/MongoDBGlobalContext associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used when not configured on the entity or
property levelCopyright © 2010-2014 Hibernate. All Rights Reserved.