Uses of Class
org.springframework.data.mongodb.core.CollectionOptions
Packages that use CollectionOptions
-
Uses of CollectionOptions in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core that return CollectionOptionsModifier and TypeMethodDescriptionCollectionOptions.capped()Create newCollectionOptionswith already given settings and capped set to true.CollectionOptions.changeStream(CollectionOptions.CollectionChangeStreamOptions changeStreamOptions) Create newCollectionOptionswith the givenCollectionOptions.TimeSeriesOptions.Create newCollectionOptionswith already given settings andcollationset to given value.CollectionOptions.disableValidation()Create newCollectionOptionswith already given settings andvalidationLevelset toValidationLevel.OFF.static CollectionOptionsCollectionOptions.emitChangedRevisions()Quick way to set upCollectionOptionsfor emitting (pre & post) change events.static CollectionOptionsCollectionOptions.empty()Create new emptyCollectionOptions.CollectionOptions.encrypted(CollectionOptions.EncryptedFieldsOptions encryptedFieldsOptions) Set theCollectionOptions.EncryptedFieldsOptionsfor collections using queryable encryption.static CollectionOptionsCollectionOptions.encryptedCollection(Function<CollectionOptions.EncryptedFieldsOptions, CollectionOptions.EncryptedFieldsOptions> optionsFunction) Create newCollectionOptionsbuilding encryption options in a fluent style.static CollectionOptionsCollectionOptions.encryptedCollection(CollectionOptions.EncryptedFieldsOptions encryptedFieldsOptions) Create newCollectionOptionswith the givenencryptedFields.static CollectionOptionsCollectionOptions.encryptedCollection(MongoJsonSchema schema) Create newCollectionOptionsreading encryption options from the givenMongoJsonSchema.CollectionOptions.failOnValidationError()Create newCollectionOptionswith already given settings andvalidationActionset toValidationAction.ERROR.static CollectionOptionsCreate newCollectionOptionsby just providing theCollationto use.CollectionOptions.maxDocuments(long maxDocuments) Create newCollectionOptionswith already given settings andmaxDocumentsset to given value.CollectionOptions.moderateValidation()Create newCollectionOptionswith already given settings andvalidationLevelset toValidationLevel.MODERATE.CollectionOptions.schema(MongoJsonSchema schema) Create newCollectionOptionswith already given settings andvalidationOptionsset to givenMongoJsonSchema.CollectionOptions.schemaValidationAction(com.mongodb.client.model.ValidationAction validationAction) Create newCollectionOptionswith already given settings andvalidationActionset givenValidationAction.CollectionOptions.schemaValidationLevel(com.mongodb.client.model.ValidationLevel validationLevel) Create newCollectionOptionswith already given settings andvalidationLevelset givenValidationLevel.CollectionOptions.size(long size) Create newCollectionOptionswith already given settings andsizeset to given value.CollectionOptions.strictValidation()Create newCollectionOptionswith already given settings andvalidationLevelset toValidationLevel.STRICT.static CollectionOptionsCollectionOptions.timeSeries(String timeField) Quick way to set upCollectionOptionsfor a Time Series collection.static CollectionOptionsCollectionOptions.timeSeries(String timeField, Function<CollectionOptions.TimeSeriesOptions, CollectionOptions.TimeSeriesOptions> options) Set upCollectionOptionsfor a Time Series collection.CollectionOptions.timeSeries(CollectionOptions.TimeSeriesOptions timeSeriesOptions) Create newCollectionOptionswith the givenCollectionOptions.TimeSeriesOptions.CollectionOptions.validation(CollectionOptions.ValidationOptions validationOptions) Create newCollectionOptionswith the givenCollectionOptions.ValidationOptions.Create newCollectionOptionswith already given settings andvalidationOptionsset to givenValidator.CollectionOptions.warnOnValidationError()Create newCollectionOptionswith already given settings andvalidationActionset toValidationAction.WARN.Methods in org.springframework.data.mongodb.core with parameters of type CollectionOptionsModifier and TypeMethodDescriptionprotected com.mongodb.client.model.CreateCollectionOptionsReactiveMongoTemplate.convertToCreateCollectionOptions(CollectionOptions collectionOptions) protected com.mongodb.client.model.CreateCollectionOptionsReactiveMongoTemplate.convertToCreateCollectionOptions(CollectionOptions collectionOptions, Class<?> entityType) protected org.bson.DocumentMongoTemplate.convertToDocument(CollectionOptions collectionOptions, Class<?> targetType) Convert givenCollectionOptionsto a document and take the domain type information into account when creating a mapped schema for validation.<T> com.mongodb.client.MongoCollection<org.bson.Document>MongoOperations.createCollection(Class<T> entityClass, CollectionOptions collectionOptions) Create a collection with a name based on the provided entity class using the options.com.mongodb.client.MongoCollection<org.bson.Document>MongoOperations.createCollection(String collectionName, CollectionOptions collectionOptions) Create a collection with the provided name and options.<T> com.mongodb.client.MongoCollection<org.bson.Document>MongoTemplate.createCollection(Class<T> entityClass, CollectionOptions collectionOptions) com.mongodb.client.MongoCollection<org.bson.Document>MongoTemplate.createCollection(String collectionName, CollectionOptions collectionOptions) <T> Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>>ReactiveMongoOperations.createCollection(Class<T> entityClass, CollectionOptions collectionOptions) Create a collection with a name based on the provided entity class using the options.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>>ReactiveMongoOperations.createCollection(String collectionName, CollectionOptions collectionOptions) Create a collection with the provided name and options.<T> Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>>ReactiveMongoTemplate.createCollection(Class<T> entityClass, CollectionOptions collectionOptions) Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>>ReactiveMongoTemplate.createCollection(String collectionName, CollectionOptions collectionOptions)