public abstract class MongoDBPropertyContextImpl extends DocumentStorePropertyContextImpl<MongoDBEntityContext,MongoDBPropertyContext> implements MongoDBPropertyContext
| Constructor and Description |
|---|
MongoDBPropertyContextImpl(ConfigurationContext context) |
| Modifier and Type | Method and Description |
|---|---|
MongoDBPropertyContext |
associationDocumentStorage(AssociationDocumentType 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.
|
associationStorageaddEntityOption, addGlobalOption, addPropertyOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassociationStorageentity, propertypublic MongoDBPropertyContextImpl(ConfigurationContext context)
public MongoDBPropertyContext associationDocumentStorage(AssociationDocumentType 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 typehttp://docs.mongodb.org/manual/core/write-concern/public MongoDBPropertyContext readPreference(ReadPreferenceType readPreference)
MongoDBPropertyContextreadPreference in interface MongoDBPropertyContextreadPreference - the read preference typehttp://docs.mongodb.org/manual/core/read-preference/Copyright © 2010-2014 Hibernate. All Rights Reserved.