Class MongoOptionsUtils

java.lang.Object
io.micronaut.data.mongodb.operations.options.MongoOptionsUtils

@Internal public final class MongoOptionsUtils extends Object
Mongo internal utils for building options.
  • Method Details

    • buildUpdateOptions

      public static Optional<com.mongodb.client.model.UpdateOptions> buildUpdateOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean includeCollation)
    • buildReplaceOptions

      public static Optional<com.mongodb.client.model.ReplaceOptions> buildReplaceOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    • buildInsertOneOptions

      public static Optional<com.mongodb.client.model.InsertOneOptions> buildInsertOneOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    • buildInsertManyOptions

      public static Optional<com.mongodb.client.model.InsertManyOptions> buildInsertManyOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    • buildFindOptions

      public static Optional<MongoFindOptions> buildFindOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    • buildAggregateOptions

      public static Optional<MongoAggregationOptions> buildAggregateOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    • buildDeleteOptions

      public static Optional<com.mongodb.client.model.DeleteOptions> buildDeleteOptions(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean includeCollation)
    • bsonDocumentAsCollation

      public static com.mongodb.client.model.Collation bsonDocumentAsCollation(@Nullable @Nullable org.bson.BsonDocument collationDocument)