Uses of Class
org.springframework.data.mongodb.core.CollectionOptions.ValidationOptions
-
Uses of CollectionOptions.ValidationOptions in org.springframework.data.mongodb.core
Modifier and TypeMethodDescriptionCollectionOptions.ValidationOptions.none()
Create an emptyCollectionOptions.ValidationOptions
.CollectionOptions.ValidationOptions.validationAction
(com.mongodb.client.model.ValidationAction validationAction) Define the validation action to take.CollectionOptions.ValidationOptions.validationLevel
(com.mongodb.client.model.ValidationLevel validationLevel) Define the validation level to apply.Define theValidator
to be used for document validation.Modifier and TypeMethodDescriptionCollectionOptions.getValidationOptions()
Get theMongoJsonSchema
for the collection.Modifier and TypeMethodDescriptionCollectionOptions.validation
(CollectionOptions.ValidationOptions validationOptions) Create newCollectionOptions
with the givenCollectionOptions.ValidationOptions
.