public abstract class MongoDBEntityContextImpl extends BaseDocumentStoreEntityContext<MongoDBEntityContext,MongoDBPropertyContext> implements MongoDBEntityContext
| Constructor and Description |
|---|
MongoDBEntityContextImpl(ConfigurationContext context) |
| Modifier and Type | Method and Description |
|---|---|
MongoDBEntityContext |
associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBEntityContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be
applied when performing read operations against the datastore.
|
MongoDBEntityContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations for the
current entity. |
MongoDBEntityContext |
writeConcern(WriteConcernType writeConcern)
Defines the type of write concern to be applied
when performing write operations for the current entity.
|
associationStorageaddEntityOption, addGlobalOption, addPropertyOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassociationStorageentity, propertypublic MongoDBEntityContextImpl(ConfigurationContext context)
public MongoDBEntityContext writeConcern(WriteConcernType writeConcern)
MongoDBEntityContextwriteConcern in interface MongoDBEntityContextwriteConcern - the write concern typepublic MongoDBEntityContext writeConcern(com.mongodb.WriteConcern writeConcern)
MongoDBEntityContextWriteConcern implementation to be applied when performing write operations for the
current entity. Either use this option or MongoDBEntityContext.writeConcern(WriteConcernType) but not both at the same type.writeConcern in interface MongoDBEntityContextwriteConcern - the write concernpublic MongoDBEntityContext readPreference(ReadPreferenceType readPreference)
MongoDBEntityContextreadPreference in interface MongoDBEntityContextreadPreference - the read preference typepublic MongoDBEntityContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
MongoDBEntityContextAssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage in interface MongoDBEntityContextassociationDocumentStorage - the association document type to be used when not configured the property levelCopyright © 2010-2014 Hibernate. All Rights Reserved.