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 ValidationAction |
ValidationAction.fromString(String validationAction)
Returns the validationAction from the string representation of a validation action.
|
ValidationAction |
ValidationOptions.getValidationAction()
Gets the
ValidationAction . |
static ValidationAction |
ValidationAction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationAction[] |
ValidationAction.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.validationAction(ValidationAction validationAction)
Sets the
ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow
invalid documents. |
Modifier and Type | Method and Description |
---|---|
ValidationAction |
CreateCollectionOperation.getValidationAction()
Gets the
ValidationAction . |
Modifier and Type | Method and Description |
---|---|
CreateCollectionOperation |
CreateCollectionOperation.validationAction(ValidationAction validationAction)
Sets the
ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow
invalid documents. |
Copyright © 2016. All Rights Reserved.