Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
static ValidationLevel |
ValidationLevel.fromString(String validationLevel)
Returns the ValidationLevel from the string representation of the validation level.
|
ValidationLevel |
ValidationOptions.getValidationLevel()
Gets the
ValidationLevel that determines how strictly MongoDB applies the validation rules to existing documents during an
insert or update. |
static ValidationLevel |
ValidationLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationLevel[] |
ValidationLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ValidationOptions |
ValidationOptions.validationLevel(ValidationLevel validationLevel)
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert
or update.
|
Modifier and Type | Method and Description |
---|---|
ValidationLevel |
CreateCollectionOperation.getValidationLevel()
Gets the
ValidationLevel that determines how strictly MongoDB applies the validation rules to existing documents during an
insert or update. |
Modifier and Type | Method and Description |
---|---|
CreateCollectionOperation |
CreateCollectionOperation.validationLevel(ValidationLevel validationLevel)
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert
or update.
|
Copyright © 2016. All Rights Reserved.