public final class MongoDBProperties extends Object implements DocumentStoreProperties
persistence.xml or OgmConfiguration.| Modifier and Type | Field and Description |
|---|---|
static String |
ASSOCIATION_DOCUMENT_STORAGE
Configuration property for specifying how to store association documents.
|
static String |
READ_PREFERENCE
Configuration property for setting the read preference.
|
static String |
TIMEOUT
The timeout used at the connection to the MongoDB instance.
|
static String |
WRITE_CONCERN
Configuration property for defining the acknowledgement of write operations.
|
static String |
WRITE_CONCERN_TYPE
Configuration property for setting a custom
WriteConcern implementation. |
ASSOCIATIONS_STORECREATE_DATABASE, DATABASE, DATASTORE_PROVIDER, GRID_DIALECT, HOST, OPTION_CONFIGURATOR, PASSWORD, PORT, USERNAMEpublic static final String WRITE_CONCERN
WriteConcernType enum or the String representations of its constants.
Specify WriteConcernType.CUSTOM in conjunction with WRITE_CONCERN_TYPE to specify a custom
WriteConcern implementation.
Defaults to WriteConcernType.ACKNOWLEDGED.
WriteConcern,
Constant Field Valuespublic static final String WRITE_CONCERN_TYPE
WriteConcern implementation. Can be given as fully-qualified
class name, class-object or instance of the implementation type. If not given as instance, the specified type
must have a default (no-args) constructor.
Only takes affect if WRITE_CONCERN is set to WriteConcernType.CUSTOM.
public static final String READ_PREFERENCE
ReadPreferenceType enum
or the String representations of its constants.
Defaults to ReadPreferenceType.PRIMARY.
ReadPreference,
Constant Field Valuespublic static final String TIMEOUT
public static final String ASSOCIATION_DOCUMENT_STORAGE
DocumentStoreProperties.ASSOCIATIONS_STORE is set to AssociationStorageType.ASSOCIATION_DOCUMENT.
Supported values are the AssociationDocumentType enum or the String representations of its constants.
Defaults to AssociationDocumentType.GLOBAL_COLLECTION.Copyright © 2010-2014 Hibernate. All Rights Reserved.