| Package | Description |
|---|---|
| org.springframework.data.mongodb.core |
MongoDB core support.
|
| org.springframework.data.mongodb.core.validation |
MongoDB schema validation specifics.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Validator> |
CollectionOptions.ValidationOptions.getValidator()
Get the
Validator to use. |
| Modifier and Type | Method and Description |
|---|---|
CollectionOptions |
CollectionOptions.validator(Validator validator)
Create new
CollectionOptions with already given settings and validationOptions set to given
Validator. |
CollectionOptions.ValidationOptions |
CollectionOptions.ValidationOptions.validator(Validator validator)
Define the
Validator to be used for document validation. |
| Constructor and Description |
|---|
ValidationOptions(Validator validator,
com.mongodb.client.model.ValidationLevel validationLevel,
com.mongodb.client.model.ValidationAction validationAction) |
| Modifier and Type | Method and Description |
|---|---|
static Validator |
Validator.criteria(CriteriaDefinition criteria)
Creates a new
Validator checking documents against a given query structure expressed by
CriteriaDefinition. |
static Validator |
Validator.document(org.bson.Document validationRules)
Creates a basic
Validator checking documents against a given set of rules. |
static Validator |
Validator.schema(MongoJsonSchema schema)
Creates a new
Validator checking documents against the structure defined in MongoJsonSchema. |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.