Uses of Interface
org.springframework.data.mongodb.core.validation.Validator
Package
Description
MongoDB core support.
MongoDB schema validation specifics.
-
Uses of Validator in org.springframework.data.mongodb.core
Modifier and TypeMethodDescriptionCollectionOptions.ValidationOptions.getValidator()
Get theValidator
to use.Modifier and TypeMethodDescriptionDefine theValidator
to be used for document validation.Create newCollectionOptions
with already given settings andvalidationOptions
set to givenValidator
.ModifierConstructorDescriptionValidationOptions
(Validator validator, com.mongodb.client.model.ValidationLevel validationLevel, com.mongodb.client.model.ValidationAction validationAction) -
Uses of Validator in org.springframework.data.mongodb.core.validation
Modifier and TypeMethodDescriptionstatic Validator
Validator.criteria
(CriteriaDefinition criteria) Creates a newValidator
checking documents against a given query structure expressed byCriteriaDefinition
.static Validator
Validator.document
(org.bson.Document validationRules) Creates a basicValidator
checking documents against a given set of rules.static Validator
Validator.schema
(MongoJsonSchema schema) Creates a newValidator
checking documents against the structure defined inMongoJsonSchema
.