public interface MongoDBEntityContext extends DocumentStoreEntityContext<MongoDBEntityContext,MongoDBPropertyContext>
| 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.
|
associationStorage, mapStorageentity, propertyMongoDBEntityContext writeConcern(WriteConcernType writeConcern)
writeConcern - the write concern typeMongoDBEntityContext writeConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern implementation to be applied when performing write operations for the
current entity. Either use this option or writeConcern(WriteConcernType) but not both at the same type.writeConcern - the write concernMongoDBEntityContext readPreference(ReadPreferenceType readPreference)
readPreference - the read preference typeMongoDBEntityContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used when not configured the property levelCopyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.