public final class MongoDBProperties extends Object implements DocumentStoreProperties
persistence.xml or StandardServiceRegistryBuilder.| Modifier and Type | Field and Description |
|---|---|
static String |
ASSOCIATION_DOCUMENT_STORAGE
Configuration property for specifying how to store association documents.
|
static String |
AUTHENTICATION_DATABASE
Specify the authentication database to use to check the credentials.
|
static String |
AUTHENTICATION_MECHANISM
Specify the authentication mechanism that MongoDB will use to authenticate the connection.
|
static String |
MONGO_DRIVER_SETTINGS_PREFIX
Property prefix for MongoDB driver settings which needs to be passed on to the driver.
|
static String |
READ_PREFERENCE
Configuration property for setting the read preference.
|
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_STORE, MAP_STORAGECREATE_DATABASE, DATABASE, DATASTORE_PROVIDER, ENABLED, ERROR_HANDLER, 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 ASSOCIATION_DOCUMENT_STORAGE
DocumentStoreProperties.ASSOCIATIONS_STORE is set to AssociationStorageType.ASSOCIATION_DOCUMENT.
Supported values are the AssociationDocumentStorageType enum or the String representations of its constants.
Defaults to AssociationDocumentStorageType.GLOBAL_COLLECTION.public static final String AUTHENTICATION_MECHANISM
AuthenticationMechanismType.
BEST (default) will handshake with the server to find the best authentication mechanism.MongoCredential,
Constant Field Valuespublic static final String AUTHENTICATION_DATABASE
public static final String MONGO_DRIVER_SETTINGS_PREFIX
MongoClientOptions.Builder for a list of available properties.
All string, int and boolean builder methods can be configured, eg hibernate.ogm.mongodb.driver.maxWaitTime = 1000.Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.