public abstract class MongoDBGlobalContextImpl extends BaseDocumentStoreGlobalContext<MongoDBGlobalContext,MongoDBEntityContext> implements MongoDBGlobalContext
| Constructor and Description |
|---|
MongoDBGlobalContextImpl(ConfigurationContext context) |
| Modifier and Type | Method and Description |
|---|---|
MongoDBGlobalContext |
associationDocumentStorage(AssociationDocumentStorageType 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.
|
associationStorageaddEntityOption, addGlobalOption, addPropertyOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassociationStorageentitypublic MongoDBGlobalContextImpl(ConfigurationContext context)
public MongoDBGlobalContext writeConcern(WriteConcernType writeConcern)
MongoDBGlobalContextwriteConcern in interface MongoDBGlobalContextwriteConcern - the write concern typepublic MongoDBGlobalContext writeConcern(com.mongodb.WriteConcern writeConcern)
MongoDBGlobalContextWriteConcern implementation to be applied when performing write operations against the
datastore. Either use this option or MongoDBGlobalContext.writeConcern(WriteConcernType) but not both at the same type.writeConcern in interface MongoDBGlobalContextwriteConcern - the write concernpublic MongoDBGlobalContext readPreference(ReadPreferenceType readPreference)
MongoDBGlobalContextreadPreference in interface MongoDBGlobalContextreadPreference - the read preference typepublic MongoDBGlobalContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
MongoDBGlobalContextAssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage in interface MongoDBGlobalContextassociationDocumentStorage - the association document type to be used when not configured on the entity or
property levelCopyright © 2010-2014 Hibernate. All Rights Reserved.