public abstract class MongoDBPropertyContextImpl extends BaseDocumentStorePropertyContext<MongoDBEntityContext,MongoDBPropertyContext> implements MongoDBPropertyContext
| Constructor and Description |
|---|
MongoDBPropertyContextImpl(ConfigurationContext context) |
| Modifier and Type | Method and Description |
|---|---|
MongoDBPropertyContext |
associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBPropertyContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be
applied when performing read operations in case the current property represents an association.
|
MongoDBPropertyContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations in case the
current property represents an association. |
MongoDBPropertyContext |
writeConcern(WriteConcernType writeConcern)
Defines the type of write concern to be applied
when performing write operations in case the current property represents an association.
|
associationStorage, mapStorageaddEntityOption, addGlobalOption, addPropertyOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassociationStorage, mapStorageentity, propertypublic MongoDBPropertyContextImpl(ConfigurationContext context)
public MongoDBPropertyContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
MongoDBPropertyContextAssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage in interface MongoDBPropertyContextassociationDocumentStorage - the association document type to be used; overrides any settings on the entity
or global levelpublic MongoDBPropertyContext writeConcern(com.mongodb.WriteConcern writeConcern)
MongoDBPropertyContextWriteConcern implementation to be applied when performing write operations in case the
current property represents an association. Otherwise the setting takes no effect.
Either use this option or MongoDBPropertyContext.writeConcern(WriteConcernType) but not both at the same type.
writeConcern in interface MongoDBPropertyContextwriteConcern - the write concernpublic MongoDBPropertyContext writeConcern(WriteConcernType writeConcern)
MongoDBPropertyContextwriteConcern in interface MongoDBPropertyContextwriteConcern - the write concern typepublic MongoDBPropertyContext readPreference(ReadPreferenceType readPreference)
MongoDBPropertyContextreadPreference in interface MongoDBPropertyContextreadPreference - the read preference typeCopyright © 2010–2017 Hibernate. All rights reserved.